{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# urllib模块的使用"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 基本方法"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "urllib.request.urlopen(url, data=None, [timeout, ]*, cafile=None, capath=None, cadefault=False, context=None)\n",
    "-         url:  需要打开的网址\n",
    "\n",
    "-         data：Post提交的数据\n",
    "\n",
    "-         timeout：设置网站的访问超时时间\n",
    "\n",
    "***直接用urllib.request模块的urlopen（）获取页面，page的数据格式为bytes类型，需要decode（）解码，转换成str类型。***"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#导包\n",
    "from urllib import request\n",
    "\n",
    "#遍历list\n",
    "def print_list(list):\n",
    "    j = 0\n",
    "    for i in list:\n",
    "        j=j+1\n",
    "        print(str(j)+' '+i)\n",
    "#         print(str(j)+' '+i.decode('utf-8'))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## urlopen 发起请求"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'bytes'>\n"
     ]
    }
   ],
   "source": [
    "# read\n",
    "# def urloper():\n",
    "#     res = request.urlopen('https://www.sogou.com/')\n",
    "#     读取全部\n",
    "#     result = res.read()\n",
    "#     result = result.decode('utf-8')\n",
    "#     print(result)\n",
    "#     print(type(result))\n",
    "# if __name__ == '__main__':\n",
    "#     urloper()\n",
    "\n",
    "#urlopen（）获取页面\n",
    "response = request.urlopen('https://www.sogou.com/')\n",
    "html = response.read() # 获取到页面的源代码\n",
    "res = type(html) #read返回类型为：bytes\n",
    "print(res)\n",
    "# resource.close()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## urlopen返回对象提供方法"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "urlopen返回对象提供方法：\n",
    "\n",
    "- read() , readline() ,readlines() , fileno() , close() ：对HTTPResponse类型数据进行操作\n",
    "\n",
    "- info()：返回HTTPMessage对象，表示远程服务器返回的头信息\n",
    "\n",
    "- getcode()：返回Http状态码。如果是http请求，200请求成功完成;404网址未找到\n",
    "\n",
    "- geturl()：返回请求的url"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## read() 读取网页源码，返回bytes（字节码）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<!DOCTYPE html>\r\n",
      "<html lang=\"cn\">\r\n",
      "<head>\r\n",
      "    <script>window._speedMark = new Date();\r\n",
      "     window.\n"
     ]
    }
   ],
   "source": [
    "response = request.urlopen('https://www.sogou.com/') # 发起请求sogou.com\n",
    "html = response.read(100) #获取到页面的源代码 read返回bytes,读100个字节\n",
    "page = html.decode('utf-8') # 转化为 utf-8 编码\n",
    "print(page)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 113,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<!DOCTYPE html>\r\n",
      "<html lang=\"cn\">\r\n",
      "<head>\r\n",
      "    <script>window._speedMark = new Date();\r\n",
      "     window.lead_ip = '157.61.155.160';window.now = 1547956262307;</script>    <meta charset=\"utf-8\">\r\n",
      "<link rel=\"dns-prefetch\" href=\"//img01.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//img02.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//img03.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//img04.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//dlweb.sogoucdn.com\">\r\n",
      "<title>搜狗搜索引擎 - 上网从搜狗开始</title>\r\n",
      "<link rel=\"shortcut icon\" href=\"/images/logo/new/favicon.ico?v=4\" type=\"image/x-icon\">\r\n",
      "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\">\r\n",
      "<link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/content-search.xml\" title=\"搜狗搜索\">\r\n",
      "<meta name=\"keywords\" content=\"搜狗搜索,网页搜索,微信搜索,视频搜索,图片搜索,音乐搜索,新闻搜索,软件搜索,问答搜索,百科搜索,购物搜索\">\r\n",
      "<meta name=\"description\" content=\"搜狗搜索是全球第三代互动式搜索引擎，支持微信公众号和文章搜索、知乎搜索、英文搜索及翻译等，通过自主研发的人工智能算法为用户提供专业、精准、便捷的搜索服务。\">    <link rel=\"stylesheet\" type=\"text/css\" href=\"/web/index/css/base.v.1.4.11.css\">\r\n",
      "<style>.wrapper .suggestion{border: 1px solid #e8e8e8; width:622px;-moz-box-shadow: 0px 1px 8px rgba(0,0,0,0.1);-webkit-box-shadow: 0px 1px 8px rgba(0,0,0,0.1);box-shadow: 0px 1px 8px rgba(0,0,0,0.1);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 2px;border-bottom-left-radius: 2px; top:43px;}  .wrapper .suglist{width: 206px;}  .wrapper .suglist .keyword {color: #7a77c8;}  .big-scn .suggestion {width: 654px;}  .big-scn .suglist{width:236px;}  .wrapper .suglist{ padding:4px 0}</style></head>\r\n",
      "<body >\r\n",
      "        <div class=\"bg-gj-w\" id=\"settings-mask\" style=\"display: none;\"></div>\r\n",
      "<div class=\"gjss\" id=\"settings-advanced\" style=\"display: none;top:-240px;\">\r\n",
      "    <div class=\"hf-box\" id=\"settings-save-layer\">\r\n",
      "        <div class=\"hf-def\">已保存设置</div>\r\n",
      "    </div>\r\n",
      "    <div class=\"gjss-tab\">\r\n",
      "        <a uigs-id=\"tab_set\" href=\"javascript:void(0);\" class=\"js-settings-tab tab-a cur\">搜索设置</a>\r\n",
      "        <a uigs-id=\"tab_adv\" href=\"javascript:void(0);\" class=\"js-settings-tab tab-a\">高级搜索</a>\r\n",
      "        <a href=\"javascript:void(0);\" class=\"close-btn\" id=\"settings-close\"></a>\r\n",
      "    </div>\r\n",
      "    <div class=\"gjss-main\">\r\n",
      "        <div class=\"gjss-sz js-settings-content\">\r\n",
      "            <p class=\"gjss-err js-settings-mask\" style=\"display: none;\">搜索设置暂不可用，请启用浏览器的Cookie功能，然后刷新本页。</p>\r\n",
      "            <div class=\"bg-wkq js-settings-mask\" id=\"settings-tips\" style=\"display: none;\"></div>\r\n",
      "\r\n",
      "            <dl class=\"js-as-select\">\r\n",
      "                <dt>搜索结果显示条数</dt>\r\n",
      "                <dd>\r\n",
      "                    <a href=\"javascript:void(0);\" class=\"xz\" id=\"settings-number\" data-value=\"10\">每页显示10条</a>\r\n",
      "                    <ul id=\"settings-number-list\">\r\n",
      "                        <li><a uigs-id=\"set_10\" href=\"javascript:void(0);\" data-value=\"10\">每页显示10条</a></li>\r\n",
      "                        <li><a uigs-id=\"set-20\" href=\"javascript:void(0);\" data-value=\"20\">每页显示20条</a></li>\r\n",
      "                        <li><a uigs-id=\"set-50\" href=\"javascript:void(0);\" data-value=\"50\">每页显示50条</a></li>\r\n",
      "                        <li><a uigs-id=\"set-100\" href=\"javascript:void(0);\" data-value=\"100\">每页显示100条</a></li>\r\n",
      "                    </ul>\r\n",
      "                </dd>\r\n",
      "                <input type=\"hidden\" name=\"pageNum\" id=\"settings-show-number\" value=\"10\">\r\n",
      "            </dl>\r\n",
      "            <p class=\"enter\" style=\"padding-top: 20px;\">\r\n",
      "                <a href=\"javascript:void(0);\" id=\"settings-save\" uigs-id=\"set-save\" class=\"a1\">保存</a>\r\n",
      "                <a href=\"javascript:void(0);\" id=\"settings-reset\" uigs-id=\"set-reset\" class=\"a2\">恢复默认</a>\r\n",
      "            </p>\r\n",
      "        </div>\r\n",
      "        <div class=\"gjss-sz js-settings-content\" style=\"display: none;\">\r\n",
      "            <form action=\"/web\" target=\"_blank\" id=\"advanced-search-form\">\r\n",
      "                <input type=\"hidden\" name=\"query\" value=\"\">\r\n",
      "                <input name=\"fieldtitle\" type=\"hidden\" value=\"\"/>\r\n",
      "                <input name=\"fieldcontent\" type=\"hidden\" value=\"\"/>\r\n",
      "                <input name=\"fieldstripurl\" type=\"hidden\" value=\"\"/>\r\n",
      "                <input name=\"bstype\" type=\"hidden\" value=\"\"/>\r\n",
      "                <input name=\"ie\" type=\"hidden\" value=\"utf8\"/>\r\n",
      "                <dl>\r\n",
      "                    <dt>搜索关键词</dt>\r\n",
      "                    <dd class=\"js-as-radio\">\r\n",
      "                                                <div class=\"input-box js-input-box\" id=\"advanced-query-box\">\r\n",
      "                            <input name=\"q\" type=\"text\" must=\"1\" size=\"42\" maxlength=\"100\" autocomplete=\"off\" placeholder=\"例如：搜狗真棒（多个关键词可用空格区分）\">\r\n",
      "                            <span class=\"err-word\">* 请输入搜索关键词</span>\r\n",
      "                        </div>\r\n",
      "                        <a uigs-id=\"adv_split-query\" href=\"javascript:void(0);\" data-value=\"checkbox\" class=\"dk-btn cur\">拆分关键词</a>\r\n",
      "                        <a uigs-id=\"adv_no-split-query\" href=\"javascript:void(0);\" data-value=\"\" class=\"dk-btn\">不拆分关键词</a>\r\n",
      "                        <input type=\"hidden\" name=\"include\" value=\"checkbox\">\r\n",
      "                    </dd>\r\n",
      "                </dl>\r\n",
      "                <dl>\r\n",
      "                    <dt>在指定站内搜索</dt>\r\n",
      "                    <dd>\r\n",
      "                        <div class=\"input-box js-input-box\"><input name=\"sitequery\" type=\"text\" size=\"40\" autocomplete=\"off\" placeholder=\"例如：www.sogou.com\"></div>\r\n",
      "                    </dd>\r\n",
      "                </dl>\r\n",
      "                <dl class=\"js-as-select\" style=\"padding-top:16px\">\r\n",
      "                    <dt>搜索词位于</dt>\r\n",
      "                    <dd>\r\n",
      "                        <a href=\"javascript:void(0);\" class=\"xz\">网页中任何地方</a>\r\n",
      "                        <ul>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"0\">网页中任何地方</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"1\">仅在标题中</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"2\">仅在正文中</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"3\">仅在网址中</a></li>\r\n",
      "                        </ul>\r\n",
      "                    </dd>\r\n",
      "                    <input type=\"hidden\" name=\"located\" value=\"0\">\r\n",
      "                </dl>\r\n",
      "                <dl class=\"js-as-select\" style=\"padding-top:16px\">\r\n",
      "                    <dt>需要搜索的文件格式</dt>\r\n",
      "                    <dd >\r\n",
      "                        <a href=\"javascript:void(0);\" class=\"xz\">全部网页</a>\r\n",
      "                        <ul>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"\">全部网页</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"doc\">Microsoft Word (.doc)</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"xls\">Microsoft Excel (.xls)</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"ppt\">Microsoft Powerpoint (.ppt)</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"pdf\">Adobe Acrobat PDF (.pdf)</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"rtf\">RTF (.rtf)</a></li>\r\n",
      "                            <li><a href=\"javascript:void(0);\" data-value=\"all\">全部文档</a></li>\r\n",
      "                        </ul>\r\n",
      "                    </dd>\r\n",
      "                    <input type=\"hidden\" name=\"filetype\" value=\"\">\r\n",
      "                </dl>\r\n",
      "                <dl>\r\n",
      "                    <dt>搜索结果排序方式</dt>\r\n",
      "                    <dd class=\"js-as-radio\">\r\n",
      "                        <a uigs-id=\"adv_relevance-ranking\" href=\"javascript:void(0);\" data-value=\"off\" class=\"dk-btn cur\">按相关性排序</a>\r\n",
      "                        <a uigs-id=\"adv_time-sort\" href=\"javascript:void(0);\" data-value=\"on\" class=\"dk-btn\">按时间排序</a>\r\n",
      "                        <input type=\"hidden\" name=\"tro\" value=\"off\">\r\n",
      "                    </dd>\r\n",
      "                </dl>\r\n",
      "                <p class=\"enter\"><input id=\"adv-search-btn\" uigs-id=\"adv_search-btn\" type=\"submit\" class=\"a1\" value=\"开始搜索\"></p>\r\n",
      "            </form>\r\n",
      "        </div>\r\n",
      "    </div>\r\n",
      "</div>\r\n",
      "    <div class=\"wrapper\" id=\"wrap\">\r\n",
      "        <div class=\"header\">\r\n",
      "            <div class=\"top-nav\">\r\n",
      "    <ul>\r\n",
      "        <li><a onclick=\"st(this,'40030300','news')\" href=\"http://news.sogou.com\" uigs-id=\"nav_news\" id=\"news\">新闻</a></li>\r\n",
      "        <li class=\"cur\"><span>网页</span></li>\r\n",
      "        <li><a onclick=\"st(this,'73141200','weixin')\" href=\"http://weixin.sogou.com/\" uigs-id=\"nav_weixin\" id=\"weixinch\">微信</a></li>\r\n",
      "        <li><a onclick=\"st(this,'40051200','zhihu')\" href=\"http://zhihu.sogou.com/\" uigs-id=\"nav_zhihu\" id=\"zhihu\">知乎</a></li>\r\n",
      "        <li><a onclick=\"st(this,'40030500','pic')\" href=\"http://pic.sogou.com\" uigs-id=\"nav_pic\" id=\"pic\">图片</a></li>\r\n",
      "        <li><a onclick=\"st(this,'40030600','video')\" href=\"https://v.sogou.com/\" uigs-id=\"nav_v\" id=\"video\">视频</a></li>\r\n",
      "        <li><a href=\"http://mingyi.sogou.com?fr=common_index_nav\" uigs-id=\"nav_mingyi\" id=\"mingyi\" onclick=\"st(this,'','myingyi')\">明医</a></li>\r\n",
      "        <li><a href=\"http://english.sogou.com?fr=pcweb_index_nav\" uigs-id=\"nav_overseas\" id=\"overseas\" onclick=\"st(this,'','overseas')\" >英文</a></li>\r\n",
      "        <li><a onclick=\"st(this,'web2ww','wenwen')\" href=\"https://wenwen.sogou.com/?ch=websearch\" uigs-id=\"nav_wenwen\" id=\"index_more_wenwen\">问问</a></li>\r\n",
      "        <li><a href=\"http://scholar.sogou.com?fr=common_index_nav\" uigs-id=\"nav_scholar\" id=\"scholar\" onclick=\"st(this,'','scholar')\">学术</a></li>\r\n",
      "        <li class=\"show-more\">\r\n",
      "            <a href=\"javascript:void(0);\" id=\"more-product\">更多<i class=\"m-arr\"></i></a>\r\n",
      "            <div class=\"pos-more\" id=\"products-box\" style=\"top: 40px;\">\r\n",
      "                <span class=\"ico-san\"></span>\r\n",
      "\r\n",
      "                <a onclick=\"st(this,'40031000')\" href=\"http://map.sogou.com\" uigs-id=\"nav_map\" id=\"map\">地图</a>\r\n",
      "                <a onclick=\"st(this,'40031500')\" href=\"http://gouwu.sogou.com/\" uigs-id=\"nav_gouwu\" id=\"index_more_gouwu\">购物</a>\r\n",
      "                <a onclick=\"st(this,'40051203')\" href=\"http://baike.sogou.com/Home.v\" uigs-id=\"nav_baike\" id=\"index_more_baike\">百科</a>\r\n",
      "                <a onclick=\"st(this)\" href=\"http://zhishi.sogou.com\" uigs-id=\"nav_zhishi\" id=\"index_more_zhishi\">知识</a>\r\n",
      "                <a onclick=\"st(this,'40051205')\" href=\"http://as.sogou.com/\" uigs-id=\"nav_app\" id=\"index_more_appli\">应用</a>\r\n",
      "                <a onclick=\"st(this,'40051205','fanyi')\" href=\"http://fanyi.sogou.com?fr=common_index_nav_pc\" uigs-id=\"nav_fanyi\" id=\"index_more_fanyi\">翻译</a>\r\n",
      "                <a href=\"http://index.sogou.com\" uigs-id=\"nav_index\" id=\"index_more_index\">指数</a>\r\n",
      "                                    <a href=\"http://dangjian.sogou.com\" uigs-id=\"nav_dangjian\" id=\"dangjian\" onclick=\"st(this,'','dangjian')\">党建</a>\r\n",
      "                                <span class=\"all\"><a onclick=\"st(this,'40051206')\" href=\"http://www.sogou.com/docs/more.htm?v=1\" uigs-id=\"nav_all\" target=\"_blank\">全部</a></span>\r\n",
      "            </div>\r\n",
      "        </li>\r\n",
      "    </ul>\r\n",
      "</div>            <div class=\"user-box\">\r\n",
      "    <div class=\"local-weather\" id=\"local-weather\">\r\n",
      "        <div class=\"wea-box\" id=\"cur-weather\" style=\"display: none;\"></div>\r\n",
      "        <div class=\"pos-more\" id=\"detail-weather\" style=\"top:40px;\"></div>\r\n",
      "    </div>\r\n",
      "    <span class=\"line\" id=\"user-box-line\" style=\"display: none;\"></span>\r\n",
      "    <div class=\"user-enter\">\r\n",
      "        <a href=\"javascript:void(0);\" id=\"show-card\" style=\"display: none\" uigs-id=\"settings_show-card\">显示卡片</a>\r\n",
      "                    <a href=\"javascript:void(0);\" uigs-id=\"settings_change-skin\" id=\"changeSkinBtn\" >换肤</a>\r\n",
      "                <span class=\"s-dw\">\r\n",
      "            <a href=\"javascript:void(0);\" id=\"settings\">设置</a>\r\n",
      "            <div class=\"pos-more\" id=\"settings-box\" style=\"top:40px;\">\r\n",
      "                <span class=\"ico-san\"></span>\r\n",
      "                <a href=\"javascript:void(0);\" id=\"search-settings\" uigs-id=\"settings_config\">搜索设置</a>\r\n",
      "                <a href=\"javascript:void(0);\" id=\"advanced-search\" uigs-id=\"settings_advanced\">高级搜索</a>\r\n",
      "                <a href=\"http://help.sogou.com/?w=01091500&v=1\" uigs-id=\"settings_help\">帮助</a>\r\n",
      "            </div>\r\n",
      "        </span>\r\n",
      "                    <a href=\"javascript:void(0);\" class=\"enter\" id=\"loginBtn\">登录</a>            </div>\r\n",
      "</div>\r\n",
      "        </div>\r\n",
      "        <div class=\"content\" id=\"content\">\r\n",
      "            <div class=\"pos-header\" id=\"top-float-bar\">\r\n",
      "    <div class=\"part-one\"></div>\r\n",
      "    <div class=\"part-two\" id=\"card-tab-layer\">\r\n",
      "        <div class=\"c-top\" id=\"top-card-tab\"></div>\r\n",
      "    </div>\r\n",
      "</div>\r\n",
      "<div class=\"logo2\" id=\"logo-s\"><span></span></div>            <div class=\"logo\" id=\"logo-l\"><span></span></div>            <div class=\"search-box\" id=\"search-box\">\r\n",
      "    <form action=\"/web\" name=\"sf\" id=\"sf\">\r\n",
      "        <span class=\"sec-input-box\">\r\n",
      "            <input type=\"text\" class=\"sec-input active\" name=\"query\" id=\"query\" maxlength=\"100\" len=\"80\" autocomplete=\"off\" />\r\n",
      "        </span>\r\n",
      "        <span class=\"enter-input\"><input type=\"submit\" value=\"\" id=\"stb\"></span>\r\n",
      "        <input type=\"hidden\" name=\"_asf\" value=\"www.sogou.com\" />\r\n",
      "        <input type=\"hidden\" name=\"_ast\" />\r\n",
      "        <input type=\"hidden\" name=\"w\" value=\"01019900\" />\r\n",
      "        <input type=\"hidden\" name=\"p\" value=\"40040100\" />\r\n",
      "        <input type=\"hidden\" name=\"ie\" value=\"utf8\" />\r\n",
      "                <input type=\"hidden\" name=\"from\" value=\"index-nologin\" />\r\n",
      "                <input type=\"hidden\" name=\"s_from\" value=\"index\" />\r\n",
      "        <div class=\"keywords-tips\" id=\"keywordsTips\" style=\"display:none\">\r\n",
      "            <i></i><p>搜狗的查询限制在\"<strong>40个汉字</strong>\"以内。</p>\r\n",
      "        </div>\r\n",
      "    </form>\r\n",
      "</div>\r\n",
      "        </div>\r\n",
      "            <div class=\"card-box\" id=\"card-box\" style=\"display: none;\">\r\n",
      "    <div class=\"card-box2\" id=\"card-box2\">\r\n",
      "        <div class=\"c-top\" id=\"card-tab-box\">\r\n",
      "            <a href=\"javascript:void(0);\" id=\"card-settings\" uigs-id=\"settings_settings-btn\" class=\"shezhi\"></a>\r\n",
      "            <div class=\"pos-more\" id=\"card-options\">\r\n",
      "                <span class=\"ico-san\"></span>\r\n",
      "                <a href=\"javascript:void(0);\" uigs-id=\"settings_close-card\" id=\"close-card\">关闭卡片</a>\r\n",
      "            </div>\r\n",
      "        </div>\r\n",
      "        <div class=\"c-main\" id=\"card-content\"></div>\r\n",
      "    </div>\r\n",
      "</div>\r\n",
      "<div class=\"loog-more\" id=\"scroll-more\" style=\"display: none;\">\r\n",
      "    <a href=\"javascript:void(0);\" uigs-id=\"scroll-more\">滚动查看更多<br><span class=\"ico_san\"></span></a>\r\n",
      "</div>            <div class=\"ft\" id=\"footer\" style=\"display: none;\">\r\n",
      "    <a href=\"http://fuwu.sogou.com/\" target=\"_blank\" uigs-id=\"footer_tuiguang\">企业推广</a><span class=\"line\"></span><a href=\"http://corp.sogou.com/\" target=\"_blank\" uigs-id=\"footer_about\">关于搜狗</a><span class=\"line\"></span><a href=\"http://ir.sogou.com/\" target=\"_blank\" uigs-id=\"footer_aboutEnglish\">About Sogou</a><span class=\"line\"></span><a href=\"http://www.sogou.com/docs/terms.htm?v=1\" target=\"_blank\" uigs-id=\"footer_disclaimer\">免责声明</a><span class=\"line\"></span><a href=\"http://fankui.help.sogou.com/index.php/web/web/index/type/4\" target=\"_blank\"  uigs-id=\"footer_feedback\">意见反馈及投诉</a><span class=\"line\"></span><a href=\"http://corp.sogou.com/private.html\" target=\"_blank\" uigs-id=\"footer_private\">隐私政策</a><br>\r\n",
      "    &copy;&nbsp;2004-2019&nbsp;Sogou.com&nbsp;/&nbsp;<span class=\"g\">京网文 (2016) 6432-852号</span>&nbsp;/&nbsp;<a href=\"http://www.miibeian.gov.cn\" target=\"_blank\" class=\"g\">京ICP证050897号</a><br>\r\n",
      "    <span class=\"g\">(京)-经营性-2016-0019</span>&nbsp;/&nbsp;<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\" class=\"g\">京ICP备11001839号-1</a>&nbsp;/&nbsp;<a href=\"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000025\" class=\"ba\" target=\"_blank\">京公网安备11000002000025号</a>\r\n",
      "</div>\r\n",
      "<div class=\"ft-v1\" id=\"QRcode-footer\" style=\"padding-bottom:53px; \">\r\n",
      "    <div class=\"erwm-box\">\r\n",
      "        <span class=\"ewm\"></span>\r\n",
      "        <div class=\"erwx\">\r\n",
      "            <p>搜狗搜索APP</p>\r\n",
      "            <p class=\"p2\">搜你所想</p>\r\n",
      "        </div>\r\n",
      "    </div>\r\n",
      "    <div class=\"ft-info\">\r\n",
      "        <a uigs-id=\"mid_pinyin\" href=\"http://pinyin.sogou.com/\" target=\"_blank\"><i class=\"i1\"></i>搜狗输入法</a><span class=\"line\"></span><a uigs-id=\"mid_liulanqi\" href=\"http://ie.sogou.com/\" target=\"_blank\"><i class=\"i2\"></i>浏览器</a><span class=\"line\"></span><a uigs-id=\"mid_daohang\" href=\"http://123.sogou.com/\" target=\"_blank\"><i class=\"i3\"></i>网址导航</a><br> <a href=\"http://corp.sogou.com/\" target=\"_blank\" class=\"g\">关于搜狗</a>&nbsp;-&nbsp;<a href=\"http://ir.sogou.com/\" target=\"_blank\" class=\"g\">About Sogou</a>&nbsp;-&nbsp;<a href=\"http://fuwu.sogou.com/\" target=\"_blank\" class=\"g\">企业推广</a>&nbsp;-&nbsp;<a href=\"http://www.sogou.com/docs/terms.htm?v=1\" target=\"_blank\" class=\"g\">免责声明</a>&nbsp;-&nbsp;<a href=\"http://fankui.help.sogou.com/index.php/web/web/index/type/4\" target=\"_blank\" class=\"g\">意见反馈及投诉</a>&nbsp;-&nbsp;<a href=\"http://corp.sogou.com/private.html\" target=\"_blank\" class=\"g\" uigs-id=\"footer_private\">隐私政策</a><br>\r\n",
      "        &copy;&nbsp;2004-2019&nbsp;Sogou.com&nbsp;/&nbsp;<span class=\"g\">京网文 (2016) 6432-852号</span>&nbsp;/&nbsp;<span class=\"g\">(京)-经营性-2016-0019</span><br>\r\n",
      "        <a href=\"http://www.miibeian.gov.cn\" target=\"_blank\" class=\"g\">京ICP证050897号</a>&nbsp;/&nbsp;<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\" class=\"g\">京ICP备11001839号-1</a>&nbsp;/&nbsp;<a href=\"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000025\" class=\"ba\" target=\"_blank\">京公网安备11000002000025号</a>\r\n",
      "    </div>\r\n",
      "</div>            <div class=\"kuozhan\" id=\"QRcode-box\" style=\"display: none;\">\r\n",
      "    <a href=\"javascript:void(0);\" id=\"miniQRcode\"></a>\r\n",
      "    <span id=\"QRcode\"></span>\r\n",
      "</div>\r\n",
      "<a href=\"javascript:void(0);\" class=\"back-top\" id=\"back-top\"></a>    </div>\r\n",
      "        <script>\r\n",
      "    var SugPara, uigs_para,\r\n",
      "        msBrowserName = navigator.userAgent.toLowerCase(),\r\n",
      "        msIsSe = false,\r\n",
      "        msIsMSearch = false,\r\n",
      "        hasDoodle = false,\r\n",
      "        queryinput = document.getElementById('query');\r\n",
      "\r\n",
      "    uigs_para={\r\n",
      "        \"uigs_productid\": \"webapp\",\r\n",
      "        \"type\": \"webindex_new\",\r\n",
      "        \"stype\": \"nologin\",\r\n",
      "        \"scrnwi\": screen.width,\r\n",
      "        \"scrnhi\": screen.height,\r\n",
      "        \"uigs_pbtag\": \"A\",\r\n",
      "        \"uigs_cookie\": \"SUID,sct\",\r\n",
      "                \"protocol\": location.protocol.toLowerCase() == \"https:\" ? \"https\" : \"http\"\r\n",
      "    };\r\n",
      "\r\n",
      "    SugPara = {\"enableSug\":true,\"sugType\":\"web\",\"domain\":\"w.sugg.sogou.com\",\"productId\":\"web\",\"sugFormName\":\"sf\",\"inputid\":\"query\",\"submitId\":\"stb\",\"suggestRid\":\"01015002\",\"normalRid\":\"01019900\",\"useParent\":0 ,\"sugglocation\":\"index\",\"showVr\":true,\"showHotwords\":true,\"suggAbtestObject\":{\"suggestHistoryStrategy1\":\"\",\"suggestHistoryStrategy2\":\"0|1|2|3|4|5|6|7|8\",\"suggHistoryAbtest\":\"\"}};\r\n",
      "\r\n",
      "        \r\n",
      "    function mk_con() {\r\n",
      "        try {\r\n",
      "            window.external.metasearch('make_connection', 'www.google.com.hk');\r\n",
      "        } catch (e) {}\r\n",
      "    }\r\n",
      "\r\n",
      "    if (/se 2\\.x/i.test(msBrowserName)) {\r\n",
      "        msIsSe = true;\r\n",
      "    }\r\n",
      "\r\n",
      "    if (/metasr/i.test(msBrowserName)) {\r\n",
      "        msIsMSearch = true;\r\n",
      "    }\r\n",
      "\r\n",
      "    if (queryinput) {\r\n",
      "        if (msIsSe && msIsMSearch) {\r\n",
      "            if (queryinput.addEventListener) {\r\n",
      "                queryinput.addEventListener('keypress', mk_con, false);\r\n",
      "                queryinput.addEventListener('keydown', mk_con, false)\r\n",
      "            } else if (queryinput.attachEvent) {\r\n",
      "                queryinput.attachEvent('onkeypress', mk_con);\r\n",
      "                queryinput.attachEvent('onkeydown', mk_con);\r\n",
      "            } else {\r\n",
      "                queryinput.onkeypress = mk_con;\r\n",
      "                queryinput.onkeydown = mk_con;\r\n",
      "            }\r\n",
      "        }\r\n",
      "    }\r\n",
      "    function getDomain(){\r\n",
      "        var domainName = document.domain;\r\n",
      "        if(domainName.indexOf(\"sogou.com\")==(domainName.length-9)){\r\n",
      "            return \".sogou.com\";\r\n",
      "        }else if(domainName.indexOf(\"soso.com\")==(domainName.length-8)){\r\n",
      "            return \".soso.com\";\r\n",
      "        }else if(domainName.indexOf(\"sogo.com\") != -1){\r\n",
      "            return \".sogo.com\"\r\n",
      "        }\r\n",
      "    }\r\n",
      "    window.m_s_index = function() {\r\n",
      "        var w = document.sf.query,\r\n",
      "                c = Math.round((new Date().getTime() + Math.random()) * 1000);\r\n",
      "\r\n",
      "        w.focus();\r\n",
      "\r\n",
      "        if(new RegExp(\"kw=([^&]+)\").test(location.search)) {\r\n",
      "            if(w.value.length == 0) {\r\n",
      "                w.value = decodeURIComponent(RegExp.$1);\r\n",
      "            }\r\n",
      "        }\r\n",
      "\r\n",
      "        if (document.cookie.indexOf(\"SUV=\") < 0) {\r\n",
      "            document.cookie = \"SUV=\" + c + \";path=/;expires=Sun, 29 July 2026 00:00:00 UTC;domain=\"+getDomain();\r\n",
      "        }\r\n",
      "\r\n",
      "                            (new Image).src = '//pb6.sogou.com/v6';\r\n",
      "        \r\n",
      "    };\r\n",
      "\r\n",
      "    function st(self, p, product, anchor) {\r\n",
      "        var searchBox = document.sf.query,\r\n",
      "            query = encodeURIComponent(searchBox.value),\r\n",
      "\r\n",
      "            productUrl = {\r\n",
      "                \"news\": 'http://news.sogou.com/news?ie=utf8&query=',\r\n",
      "                \"web\": 'web?ie=utf8&query=',\r\n",
      "                \"weixin\": 'http://weixin.sogou.com/weixin?type=2&ie=utf8&query=',\r\n",
      "                \"zhihu\": 'http://zhihu.sogou.com/zhihu?ie=utf8&query=',\r\n",
      "                \"pic\": 'http://pic.sogou.com/pics?ie=utf8&query=',\r\n",
      "                \"video\": 'https://v.sogou.com/v?ie=utf8&query=',\r\n",
      "                \"myingyi\": 'https://www.sogou.com/web?m2web=mingyi.sogou.com&ie=utf8&query=',\r\n",
      "                \"overseas\": 'http://english.sogou.com?b_o_e=1&ie=utf8&fr=pcweb_index_nav&query=',\r\n",
      "                \"scholar\": 'http://scholar.sogou.com?ie=utf8&fr=common_index_nav&query=',\r\n",
      "                \"fanyi\": 'http://fanyi.sogou.com/?fr=common_index_nav_pc&ie=utf8&keyword=',\r\n",
      "                \"wenwen\":'http://wenwen.sogou.com/s/?ch=websearch&w=',\r\n",
      "                \"dangjian\":'http://dangjian.sogou.com/dangjian?query='\r\n",
      "            },\r\n",
      "            newHref = productUrl[product] || self.href;\r\n",
      "\r\n",
      "        function getConnectSymbol(url) {\r\n",
      "            return url.indexOf(\"?\") > -1 ? '&' : '?';\r\n",
      "        }\r\n",
      "\r\n",
      "        if(searchBox && searchBox.value !== ''){\r\n",
      "\r\n",
      "            if(productUrl[product]) {\r\n",
      "                newHref = productUrl[product] + query;\r\n",
      "            } else if(newHref.indexOf(\"kw=\") > 0) {\r\n",
      "                newHref = newHref.replace(new RegExp(\"kw=[^&$]*\"), \"kw=\" + query)\r\n",
      "            } else {\r\n",
      "                newHref += getConnectSymbol(newHref) + 'kw=' + query;\r\n",
      "            }\r\n",
      "        }\r\n",
      "\r\n",
      "        if(p){\r\n",
      "            newHref += getConnectSymbol(newHref) + \"p=\" + p;\r\n",
      "        }\r\n",
      "\r\n",
      "        if (anchor && anchor.length > 0){\r\n",
      "            newHref += \"#\" + anchor;\r\n",
      "        }\r\n",
      "\r\n",
      "        if (searchBox && searchBox.value == '' && (product == 'wenwen' || product == 'dangjian')){//问问首页链接单独处理\r\n",
      "            newHref = self.href;\r\n",
      "        }\r\n",
      "\r\n",
      "        self.href = newHref;\r\n",
      "    }\r\n",
      "\r\n",
      "    window.cid = function(o, p) {\r\n",
      "        var w = document.sf.query,\r\n",
      "            q = encodeURIComponent(w.value);\r\n",
      "\r\n",
      "        if (!q) {\r\n",
      "            o.href += \"?cid=\" + p\r\n",
      "        } else {\r\n",
      "            if (p === \"web2ww\") {\r\n",
      "                o.href += \"s/?cid=web2ww&w=\" + q\r\n",
      "            } else if (p === \"web2bk\") {\r\n",
      "                o.href += \"Search.e?sp=S\" + q + \"&cid=web2bk\"\r\n",
      "            }\r\n",
      "        }\r\n",
      "    };\r\n",
      "\r\n",
      "    window.m_s_index();\r\n",
      "</script>\r\n",
      "<script src=\"//dlweb.sogoucdn.com/common/lib/jquery/jquery-1.11.0.min.js\"></script>\r\n",
      "<script charset=\"gbk\" type=\"text/javascript\" src=\"/js/sugg_new.v.104.js\"></script>\r\n",
      "<script src=\"/js/pb_v.1.9.6.min.js\"></script>\r\n",
      "<script src=\"/js/lib/jquery.mousewheel.min.js\"></script>\r\n",
      "<script src=\"/js/lib/juicer-min.js\"></script>\r\n",
      "<script src=\"/js/common/widget/login_new.min.v.0.3.js\"></script>\r\n",
      "<script src=\"//account.sogou.com/static/api/passport-async.js\"></script>\r\n",
      "<script src=\"/web/index/js/base.v.1.1.14.js\"></script>\r\n",
      "<script src=\"/web/js/voice.min.v.0.0.6.js\"></script>\r\n",
      "<script src=\"/web/js/taspeed.min.v.0.0.1.js\"></script>\r\n",
      "</body>\r\n",
      "</html>\r\n",
      "<!--zly-->\n"
     ]
    }
   ],
   "source": [
    "\n",
    "response = request.urlopen('https://www.sogou.com/') #urlopen（）获取页面\n",
    "html = response.read() #read读取所有内容\n",
    "page = html.decode('utf-8')   # 转化为 utf-8 编码\n",
    "print(page)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## info 远程服务器返回的头信息"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "返回HTTPMessage对象，表示远程服务器返回的头信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 126,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'http.client.HTTPMessage'>\n"
     ]
    }
   ],
   "source": [
    "#远程服务器返回的头信息,返回类型为HTTPMessage\n",
    "headers = response.info()\n",
    "print(type(headers))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 128,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Server: nginx\n",
      "Date: Sun, 20 Jan 2019 03:51:02 GMT\n",
      "Content-Type: text/html; charset=UTF-8\n",
      "Transfer-Encoding: chunked\n",
      "Connection: close\n",
      "Vary: Accept-Encoding\n",
      "Set-Cookie: ABTEST=8|1547956262|v17; expires=Tue, 19-Feb-19 03:51:02 GMT; path=/\n",
      "P3P: CP=\"CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR\"\n",
      "Set-Cookie: IPLOC=CN4406; expires=Mon, 20-Jan-20 03:51:02 GMT; domain=.sogou.com; path=/\n",
      "P3P: CP=\"CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR\"\n",
      "Set-Cookie: SUID=A09B3D9D5218910A000000005C43F026; expires=Sat, 15-Jan-2039 03:51:02 GMT; domain=.sogou.com; path=/\n",
      "P3P: CP=\"CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR\"\n",
      "Cache-Control: max-age=0\n",
      "Content-Language: zh-CN\n",
      "Set-Cookie: black_passportid=1; domain=.sogou.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT\n",
      "Expires: Sun, 20 Jan 2019 03:51:02 GMT\n",
      "UUID: 1e30dbb2-d9aa-45ca-9d09-b339dc937b33\n",
      "\n",
      "\n"
     ]
    }
   ],
   "source": [
    "#远程服务器返回的头信息\n",
    "print(headers)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### items 返回元组"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": 115,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[('Server', 'nginx'), ('Date', 'Sun, 20 Jan 2019 03:51:02 GMT'), ('Content-Type', 'text/html; charset=UTF-8'), ('Transfer-Encoding', 'chunked'), ('Connection', 'close'), ('Vary', 'Accept-Encoding'), ('Set-Cookie', 'ABTEST=8|1547956262|v17; expires=Tue, 19-Feb-19 03:51:02 GMT; path=/'), ('P3P', 'CP=\"CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR\"'), ('Set-Cookie', 'IPLOC=CN4406; expires=Mon, 20-Jan-20 03:51:02 GMT; domain=.sogou.com; path=/'), ('P3P', 'CP=\"CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR\"'), ('Set-Cookie', 'SUID=A09B3D9D5218910A000000005C43F026; expires=Sat, 15-Jan-2039 03:51:02 GMT; domain=.sogou.com; path=/'), ('P3P', 'CP=\"CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR\"'), ('Cache-Control', 'max-age=0'), ('Content-Language', 'zh-CN'), ('Set-Cookie', 'black_passportid=1; domain=.sogou.com; path=/; expires=Thu, 01-Dec-1994 16:00:00 GMT'), ('Expires', 'Sun, 20 Jan 2019 03:51:02 GMT'), ('UUID', '1e30dbb2-d9aa-45ca-9d09-b339dc937b33')]\n"
     ]
    }
   ],
   "source": [
    "items = headers.items()\n",
    "print(items)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## dir 函数使用"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 121,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 __bytes__\n",
      "2 __class__\n",
      "3 __contains__\n",
      "4 __delattr__\n",
      "5 __delitem__\n",
      "6 __dict__\n",
      "7 __dir__\n",
      "8 __doc__\n",
      "9 __eq__\n",
      "10 __format__\n",
      "11 __ge__\n",
      "12 __getattribute__\n",
      "13 __getitem__\n",
      "14 __gt__\n",
      "15 __hash__\n",
      "16 __init__\n",
      "17 __iter__\n",
      "18 __le__\n",
      "19 __len__\n",
      "20 __lt__\n",
      "21 __module__\n",
      "22 __ne__\n",
      "23 __new__\n",
      "24 __reduce__\n",
      "25 __reduce_ex__\n",
      "26 __repr__\n",
      "27 __setattr__\n",
      "28 __setitem__\n",
      "29 __sizeof__\n",
      "30 __str__\n",
      "31 __subclasshook__\n",
      "32 __weakref__\n",
      "33 _charset\n",
      "34 _default_type\n",
      "35 _get_params_preserve\n",
      "36 _headers\n",
      "37 _payload\n",
      "38 _unixfrom\n",
      "39 add_header\n",
      "40 as_bytes\n",
      "41 as_string\n",
      "42 attach\n",
      "43 defects\n",
      "44 del_param\n",
      "45 epilogue\n",
      "46 get\n",
      "47 get_all\n",
      "48 get_boundary\n",
      "49 get_charset\n",
      "50 get_charsets\n",
      "51 get_content_charset\n",
      "52 get_content_disposition\n",
      "53 get_content_maintype\n",
      "54 get_content_subtype\n",
      "55 get_content_type\n",
      "56 get_default_type\n",
      "57 get_filename\n",
      "58 get_param\n",
      "59 get_params\n",
      "60 get_payload\n",
      "61 get_unixfrom\n",
      "62 getallmatchingheaders\n",
      "63 is_multipart\n",
      "64 items\n",
      "65 keys\n",
      "66 policy\n",
      "67 preamble\n",
      "68 raw_items\n",
      "69 replace_header\n",
      "70 set_boundary\n",
      "71 set_charset\n",
      "72 set_default_type\n",
      "73 set_param\n",
      "74 set_payload\n",
      "75 set_raw\n",
      "76 set_type\n",
      "77 set_unixfrom\n",
      "78 values\n",
      "79 walk\n"
     ]
    }
   ],
   "source": [
    "print_list(dir(headers))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 124,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "text/html\n",
      "utf-8\n"
     ]
    }
   ],
   "source": [
    "ct = headers.get_content_type()\n",
    "print(ct)\n",
    "cs = headers.get_content_charset()\n",
    "print(cs)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## getheader(arg) 返回头部信息指定内容"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 117,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "text/html; charset=UTF-8\n"
     ]
    }
   ],
   "source": [
    "ct = response.getheader('Content-Type')\n",
    "\n",
    "print(ct)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## readline 读取一行"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'bytes'>\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "b''"
      ]
     },
     "execution_count": 62,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#读取一行\n",
    "readline = resource.readline()\n",
    "print(type(readline))\n",
    "readline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 63,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\n"
     ]
    }
   ],
   "source": [
    "readline = readline.decode('uft-8')\n",
    "print(readline)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": false
   },
   "source": [
    "readline 用循环读取多行"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 64,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 <!DOCTYPE html>\r\n",
      "\n",
      "2 <html lang=\"cn\">\r\n",
      "\n",
      "3 <head>\r\n",
      "\n",
      "4     <script>window._speedMark = new Date();\r\n",
      "\n"
     ]
    }
   ],
   "source": [
    "res = request.urlopen('https://www.sogou.com/')\n",
    "for i in range(4):\n",
    "    print(str(i+1)+' '+res.readline().decode('utf-8'))\n",
    "    "
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## getcode 返回状态码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "200\n"
     ]
    }
   ],
   "source": [
    "#返回Http状态码\n",
    "res = request.urlopen('https://www.sogou.com/')\n",
    "statusCode = res.getcode()\n",
    "print(statusCode)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 78,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## readlines 读取多行，返回list"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 85,
   "metadata": {
    "collapsed": false,
    "scrolled": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<class 'list'>\n"
     ]
    }
   ],
   "source": [
    "res = request.urlopen('https://www.sogou.com/')\n",
    "#读取多行，返回list （相当于read）\n",
    "result = res.readlines()\n",
    "print(type(result))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 86,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "1 <!DOCTYPE html>\r\n",
      "\n",
      "2 <html lang=\"cn\">\r\n",
      "\n",
      "3 <head>\r\n",
      "\n",
      "4     <script>window._speedMark = new Date();\r\n",
      "\n",
      "5      window.lead_ip = '157.61.155.160';window.now = 1547953003009;</script>    <meta charset=\"utf-8\">\r\n",
      "\n",
      "6 <link rel=\"dns-prefetch\" href=\"//img01.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//img02.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//img03.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//img04.sogoucdn.com\"><link rel=\"dns-prefetch\" href=\"//dlweb.sogoucdn.com\">\r\n",
      "\n",
      "7 <title>搜狗搜索引擎 - 上网从搜狗开始</title>\r\n",
      "\n",
      "8 <link rel=\"shortcut icon\" href=\"/images/logo/new/favicon.ico?v=4\" type=\"image/x-icon\">\r\n",
      "\n",
      "9 <meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\">\r\n",
      "\n",
      "10 <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/content-search.xml\" title=\"搜狗搜索\">\r\n",
      "\n",
      "11 <meta name=\"keywords\" content=\"搜狗搜索,网页搜索,微信搜索,视频搜索,图片搜索,音乐搜索,新闻搜索,软件搜索,问答搜索,百科搜索,购物搜索\">\r\n",
      "\n",
      "12 <meta name=\"description\" content=\"搜狗搜索是全球第三代互动式搜索引擎，支持微信公众号和文章搜索、知乎搜索、英文搜索及翻译等，通过自主研发的人工智能算法为用户提供专业、精准、便捷的搜索服务。\">    <link rel=\"stylesheet\" type=\"text/css\" href=\"/web/index/css/base.v.1.4.11.css\">\r\n",
      "\n",
      "13 <style>.wrapper .suggestion{border: 1px solid #e8e8e8; width:622px;-moz-box-shadow: 0px 1px 8px rgba(0,0,0,0.1);-webkit-box-shadow: 0px 1px 8px rgba(0,0,0,0.1);box-shadow: 0px 1px 8px rgba(0,0,0,0.1);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 2px;border-bottom-left-radius: 2px; top:43px;}  .wrapper .suglist{width: 206px;}  .wrapper .suglist .keyword {color: #7a77c8;}  .big-scn .suggestion {width: 654px;}  .big-scn .suglist{width:236px;}  .wrapper .suglist{ padding:4px 0}</style></head>\r\n",
      "\n",
      "14 <body >\r\n",
      "\n",
      "15         <div class=\"bg-gj-w\" id=\"settings-mask\" style=\"display: none;\"></div>\r\n",
      "\n",
      "16 <div class=\"gjss\" id=\"settings-advanced\" style=\"display: none;top:-240px;\">\r\n",
      "\n",
      "17     <div class=\"hf-box\" id=\"settings-save-layer\">\r\n",
      "\n",
      "18         <div class=\"hf-def\">已保存设置</div>\r\n",
      "\n",
      "19     </div>\r\n",
      "\n",
      "20     <div class=\"gjss-tab\">\r\n",
      "\n",
      "21         <a uigs-id=\"tab_set\" href=\"javascript:void(0);\" class=\"js-settings-tab tab-a cur\">搜索设置</a>\r\n",
      "\n",
      "22         <a uigs-id=\"tab_adv\" href=\"javascript:void(0);\" class=\"js-settings-tab tab-a\">高级搜索</a>\r\n",
      "\n",
      "23         <a href=\"javascript:void(0);\" class=\"close-btn\" id=\"settings-close\"></a>\r\n",
      "\n",
      "24     </div>\r\n",
      "\n",
      "25     <div class=\"gjss-main\">\r\n",
      "\n",
      "26         <div class=\"gjss-sz js-settings-content\">\r\n",
      "\n",
      "27             <p class=\"gjss-err js-settings-mask\" style=\"display: none;\">搜索设置暂不可用，请启用浏览器的Cookie功能，然后刷新本页。</p>\r\n",
      "\n",
      "28             <div class=\"bg-wkq js-settings-mask\" id=\"settings-tips\" style=\"display: none;\"></div>\r\n",
      "\n",
      "29 \r\n",
      "\n",
      "30             <dl class=\"js-as-select\">\r\n",
      "\n",
      "31                 <dt>搜索结果显示条数</dt>\r\n",
      "\n",
      "32                 <dd>\r\n",
      "\n",
      "33                     <a href=\"javascript:void(0);\" class=\"xz\" id=\"settings-number\" data-value=\"10\">每页显示10条</a>\r\n",
      "\n",
      "34                     <ul id=\"settings-number-list\">\r\n",
      "\n",
      "35                         <li><a uigs-id=\"set_10\" href=\"javascript:void(0);\" data-value=\"10\">每页显示10条</a></li>\r\n",
      "\n",
      "36                         <li><a uigs-id=\"set-20\" href=\"javascript:void(0);\" data-value=\"20\">每页显示20条</a></li>\r\n",
      "\n",
      "37                         <li><a uigs-id=\"set-50\" href=\"javascript:void(0);\" data-value=\"50\">每页显示50条</a></li>\r\n",
      "\n",
      "38                         <li><a uigs-id=\"set-100\" href=\"javascript:void(0);\" data-value=\"100\">每页显示100条</a></li>\r\n",
      "\n",
      "39                     </ul>\r\n",
      "\n",
      "40                 </dd>\r\n",
      "\n",
      "41                 <input type=\"hidden\" name=\"pageNum\" id=\"settings-show-number\" value=\"10\">\r\n",
      "\n",
      "42             </dl>\r\n",
      "\n",
      "43             <p class=\"enter\" style=\"padding-top: 20px;\">\r\n",
      "\n",
      "44                 <a href=\"javascript:void(0);\" id=\"settings-save\" uigs-id=\"set-save\" class=\"a1\">保存</a>\r\n",
      "\n",
      "45                 <a href=\"javascript:void(0);\" id=\"settings-reset\" uigs-id=\"set-reset\" class=\"a2\">恢复默认</a>\r\n",
      "\n",
      "46             </p>\r\n",
      "\n",
      "47         </div>\r\n",
      "\n",
      "48         <div class=\"gjss-sz js-settings-content\" style=\"display: none;\">\r\n",
      "\n",
      "49             <form action=\"/web\" target=\"_blank\" id=\"advanced-search-form\">\r\n",
      "\n",
      "50                 <input type=\"hidden\" name=\"query\" value=\"\">\r\n",
      "\n",
      "51                 <input name=\"fieldtitle\" type=\"hidden\" value=\"\"/>\r\n",
      "\n",
      "52                 <input name=\"fieldcontent\" type=\"hidden\" value=\"\"/>\r\n",
      "\n",
      "53                 <input name=\"fieldstripurl\" type=\"hidden\" value=\"\"/>\r\n",
      "\n",
      "54                 <input name=\"bstype\" type=\"hidden\" value=\"\"/>\r\n",
      "\n",
      "55                 <input name=\"ie\" type=\"hidden\" value=\"utf8\"/>\r\n",
      "\n",
      "56                 <dl>\r\n",
      "\n",
      "57                     <dt>搜索关键词</dt>\r\n",
      "\n",
      "58                     <dd class=\"js-as-radio\">\r\n",
      "\n",
      "59                                                 <div class=\"input-box js-input-box\" id=\"advanced-query-box\">\r\n",
      "\n",
      "60                             <input name=\"q\" type=\"text\" must=\"1\" size=\"42\" maxlength=\"100\" autocomplete=\"off\" placeholder=\"例如：搜狗真棒（多个关键词可用空格区分）\">\r\n",
      "\n",
      "61                             <span class=\"err-word\">* 请输入搜索关键词</span>\r\n",
      "\n",
      "62                         </div>\r\n",
      "\n",
      "63                         <a uigs-id=\"adv_split-query\" href=\"javascript:void(0);\" data-value=\"checkbox\" class=\"dk-btn cur\">拆分关键词</a>\r\n",
      "\n",
      "64                         <a uigs-id=\"adv_no-split-query\" href=\"javascript:void(0);\" data-value=\"\" class=\"dk-btn\">不拆分关键词</a>\r\n",
      "\n",
      "65                         <input type=\"hidden\" name=\"include\" value=\"checkbox\">\r\n",
      "\n",
      "66                     </dd>\r\n",
      "\n",
      "67                 </dl>\r\n",
      "\n",
      "68                 <dl>\r\n",
      "\n",
      "69                     <dt>在指定站内搜索</dt>\r\n",
      "\n",
      "70                     <dd>\r\n",
      "\n",
      "71                         <div class=\"input-box js-input-box\"><input name=\"sitequery\" type=\"text\" size=\"40\" autocomplete=\"off\" placeholder=\"例如：www.sogou.com\"></div>\r\n",
      "\n",
      "72                     </dd>\r\n",
      "\n",
      "73                 </dl>\r\n",
      "\n",
      "74                 <dl class=\"js-as-select\" style=\"padding-top:16px\">\r\n",
      "\n",
      "75                     <dt>搜索词位于</dt>\r\n",
      "\n",
      "76                     <dd>\r\n",
      "\n",
      "77                         <a href=\"javascript:void(0);\" class=\"xz\">网页中任何地方</a>\r\n",
      "\n",
      "78                         <ul>\r\n",
      "\n",
      "79                             <li><a href=\"javascript:void(0);\" data-value=\"0\">网页中任何地方</a></li>\r\n",
      "\n",
      "80                             <li><a href=\"javascript:void(0);\" data-value=\"1\">仅在标题中</a></li>\r\n",
      "\n",
      "81                             <li><a href=\"javascript:void(0);\" data-value=\"2\">仅在正文中</a></li>\r\n",
      "\n",
      "82                             <li><a href=\"javascript:void(0);\" data-value=\"3\">仅在网址中</a></li>\r\n",
      "\n",
      "83                         </ul>\r\n",
      "\n",
      "84                     </dd>\r\n",
      "\n",
      "85                     <input type=\"hidden\" name=\"located\" value=\"0\">\r\n",
      "\n",
      "86                 </dl>\r\n",
      "\n",
      "87                 <dl class=\"js-as-select\" style=\"padding-top:16px\">\r\n",
      "\n",
      "88                     <dt>需要搜索的文件格式</dt>\r\n",
      "\n",
      "89                     <dd >\r\n",
      "\n",
      "90                         <a href=\"javascript:void(0);\" class=\"xz\">全部网页</a>\r\n",
      "\n",
      "91                         <ul>\r\n",
      "\n",
      "92                             <li><a href=\"javascript:void(0);\" data-value=\"\">全部网页</a></li>\r\n",
      "\n",
      "93                             <li><a href=\"javascript:void(0);\" data-value=\"doc\">Microsoft Word (.doc)</a></li>\r\n",
      "\n",
      "94                             <li><a href=\"javascript:void(0);\" data-value=\"xls\">Microsoft Excel (.xls)</a></li>\r\n",
      "\n",
      "95                             <li><a href=\"javascript:void(0);\" data-value=\"ppt\">Microsoft Powerpoint (.ppt)</a></li>\r\n",
      "\n",
      "96                             <li><a href=\"javascript:void(0);\" data-value=\"pdf\">Adobe Acrobat PDF (.pdf)</a></li>\r\n",
      "\n",
      "97                             <li><a href=\"javascript:void(0);\" data-value=\"rtf\">RTF (.rtf)</a></li>\r\n",
      "\n",
      "98                             <li><a href=\"javascript:void(0);\" data-value=\"all\">全部文档</a></li>\r\n",
      "\n",
      "99                         </ul>\r\n",
      "\n",
      "100                     </dd>\r\n",
      "\n",
      "101                     <input type=\"hidden\" name=\"filetype\" value=\"\">\r\n",
      "\n",
      "102                 </dl>\r\n",
      "\n",
      "103                 <dl>\r\n",
      "\n",
      "104                     <dt>搜索结果排序方式</dt>\r\n",
      "\n",
      "105                     <dd class=\"js-as-radio\">\r\n",
      "\n",
      "106                         <a uigs-id=\"adv_relevance-ranking\" href=\"javascript:void(0);\" data-value=\"off\" class=\"dk-btn cur\">按相关性排序</a>\r\n",
      "\n",
      "107                         <a uigs-id=\"adv_time-sort\" href=\"javascript:void(0);\" data-value=\"on\" class=\"dk-btn\">按时间排序</a>\r\n",
      "\n",
      "108                         <input type=\"hidden\" name=\"tro\" value=\"off\">\r\n",
      "\n",
      "109                     </dd>\r\n",
      "\n",
      "110                 </dl>\r\n",
      "\n",
      "111                 <p class=\"enter\"><input id=\"adv-search-btn\" uigs-id=\"adv_search-btn\" type=\"submit\" class=\"a1\" value=\"开始搜索\"></p>\r\n",
      "\n",
      "112             </form>\r\n",
      "\n",
      "113         </div>\r\n",
      "\n",
      "114     </div>\r\n",
      "\n",
      "115 </div>\r\n",
      "\n",
      "116     <div class=\"wrapper\" id=\"wrap\">\r\n",
      "\n",
      "117         <div class=\"header\">\r\n",
      "\n",
      "118             <div class=\"top-nav\">\r\n",
      "\n",
      "119     <ul>\r\n",
      "\n",
      "120         <li><a onclick=\"st(this,'40030300','news')\" href=\"http://news.sogou.com\" uigs-id=\"nav_news\" id=\"news\">新闻</a></li>\r\n",
      "\n",
      "121         <li class=\"cur\"><span>网页</span></li>\r\n",
      "\n",
      "122         <li><a onclick=\"st(this,'73141200','weixin')\" href=\"http://weixin.sogou.com/\" uigs-id=\"nav_weixin\" id=\"weixinch\">微信</a></li>\r\n",
      "\n",
      "123         <li><a onclick=\"st(this,'40051200','zhihu')\" href=\"http://zhihu.sogou.com/\" uigs-id=\"nav_zhihu\" id=\"zhihu\">知乎</a></li>\r\n",
      "\n",
      "124         <li><a onclick=\"st(this,'40030500','pic')\" href=\"http://pic.sogou.com\" uigs-id=\"nav_pic\" id=\"pic\">图片</a></li>\r\n",
      "\n",
      "125         <li><a onclick=\"st(this,'40030600','video')\" href=\"https://v.sogou.com/\" uigs-id=\"nav_v\" id=\"video\">视频</a></li>\r\n",
      "\n",
      "126         <li><a href=\"http://mingyi.sogou.com?fr=common_index_nav\" uigs-id=\"nav_mingyi\" id=\"mingyi\" onclick=\"st(this,'','myingyi')\">明医</a></li>\r\n",
      "\n",
      "127         <li><a href=\"http://english.sogou.com?fr=pcweb_index_nav\" uigs-id=\"nav_overseas\" id=\"overseas\" onclick=\"st(this,'','overseas')\" >英文</a></li>\r\n",
      "\n",
      "128         <li><a onclick=\"st(this,'web2ww','wenwen')\" href=\"https://wenwen.sogou.com/?ch=websearch\" uigs-id=\"nav_wenwen\" id=\"index_more_wenwen\">问问</a></li>\r\n",
      "\n",
      "129         <li><a href=\"http://scholar.sogou.com?fr=common_index_nav\" uigs-id=\"nav_scholar\" id=\"scholar\" onclick=\"st(this,'','scholar')\">学术</a></li>\r\n",
      "\n",
      "130         <li class=\"show-more\">\r\n",
      "\n",
      "131             <a href=\"javascript:void(0);\" id=\"more-product\">更多<i class=\"m-arr\"></i></a>\r\n",
      "\n",
      "132             <div class=\"pos-more\" id=\"products-box\" style=\"top: 40px;\">\r\n",
      "\n",
      "133                 <span class=\"ico-san\"></span>\r\n",
      "\n",
      "134 \r\n",
      "\n",
      "135                 <a onclick=\"st(this,'40031000')\" href=\"http://map.sogou.com\" uigs-id=\"nav_map\" id=\"map\">地图</a>\r\n",
      "\n",
      "136                 <a onclick=\"st(this,'40031500')\" href=\"http://gouwu.sogou.com/\" uigs-id=\"nav_gouwu\" id=\"index_more_gouwu\">购物</a>\r\n",
      "\n",
      "137                 <a onclick=\"st(this,'40051203')\" href=\"http://baike.sogou.com/Home.v\" uigs-id=\"nav_baike\" id=\"index_more_baike\">百科</a>\r\n",
      "\n",
      "138                 <a onclick=\"st(this)\" href=\"http://zhishi.sogou.com\" uigs-id=\"nav_zhishi\" id=\"index_more_zhishi\">知识</a>\r\n",
      "\n",
      "139                 <a onclick=\"st(this,'40051205')\" href=\"http://as.sogou.com/\" uigs-id=\"nav_app\" id=\"index_more_appli\">应用</a>\r\n",
      "\n",
      "140                 <a onclick=\"st(this,'40051205','fanyi')\" href=\"http://fanyi.sogou.com?fr=common_index_nav_pc\" uigs-id=\"nav_fanyi\" id=\"index_more_fanyi\">翻译</a>\r\n",
      "\n",
      "141                 <a href=\"http://index.sogou.com\" uigs-id=\"nav_index\" id=\"index_more_index\">指数</a>\r\n",
      "\n",
      "142                                     <a href=\"http://dangjian.sogou.com\" uigs-id=\"nav_dangjian\" id=\"dangjian\" onclick=\"st(this,'','dangjian')\">党建</a>\r\n",
      "\n",
      "143                                 <span class=\"all\"><a onclick=\"st(this,'40051206')\" href=\"http://www.sogou.com/docs/more.htm?v=1\" uigs-id=\"nav_all\" target=\"_blank\">全部</a></span>\r\n",
      "\n",
      "144             </div>\r\n",
      "\n",
      "145         </li>\r\n",
      "\n",
      "146     </ul>\r\n",
      "\n",
      "147 </div>            <div class=\"user-box\">\r\n",
      "\n",
      "148     <div class=\"local-weather\" id=\"local-weather\">\r\n",
      "\n",
      "149         <div class=\"wea-box\" id=\"cur-weather\" style=\"display: none;\"></div>\r\n",
      "\n",
      "150         <div class=\"pos-more\" id=\"detail-weather\" style=\"top:40px;\"></div>\r\n",
      "\n",
      "151     </div>\r\n",
      "\n",
      "152     <span class=\"line\" id=\"user-box-line\" style=\"display: none;\"></span>\r\n",
      "\n",
      "153     <div class=\"user-enter\">\r\n",
      "\n",
      "154         <a href=\"javascript:void(0);\" id=\"show-card\" style=\"display: none\" uigs-id=\"settings_show-card\">显示卡片</a>\r\n",
      "\n",
      "155                     <a href=\"javascript:void(0);\" uigs-id=\"settings_change-skin\" id=\"changeSkinBtn\" >换肤</a>\r\n",
      "\n",
      "156                 <span class=\"s-dw\">\r\n",
      "\n",
      "157             <a href=\"javascript:void(0);\" id=\"settings\">设置</a>\r\n",
      "\n",
      "158             <div class=\"pos-more\" id=\"settings-box\" style=\"top:40px;\">\r\n",
      "\n",
      "159                 <span class=\"ico-san\"></span>\r\n",
      "\n",
      "160                 <a href=\"javascript:void(0);\" id=\"search-settings\" uigs-id=\"settings_config\">搜索设置</a>\r\n",
      "\n",
      "161                 <a href=\"javascript:void(0);\" id=\"advanced-search\" uigs-id=\"settings_advanced\">高级搜索</a>\r\n",
      "\n",
      "162                 <a href=\"http://help.sogou.com/?w=01091500&v=1\" uigs-id=\"settings_help\">帮助</a>\r\n",
      "\n",
      "163             </div>\r\n",
      "\n",
      "164         </span>\r\n",
      "\n",
      "165                     <a href=\"javascript:void(0);\" class=\"enter\" id=\"loginBtn\">登录</a>            </div>\r\n",
      "\n",
      "166 </div>\r\n",
      "\n",
      "167         </div>\r\n",
      "\n",
      "168         <div class=\"content\" id=\"content\">\r\n",
      "\n",
      "169             <div class=\"pos-header\" id=\"top-float-bar\">\r\n",
      "\n",
      "170     <div class=\"part-one\"></div>\r\n",
      "\n",
      "171     <div class=\"part-two\" id=\"card-tab-layer\">\r\n",
      "\n",
      "172         <div class=\"c-top\" id=\"top-card-tab\"></div>\r\n",
      "\n",
      "173     </div>\r\n",
      "\n",
      "174 </div>\r\n",
      "\n",
      "175 <div class=\"logo2\" id=\"logo-s\"><span></span></div>            <div class=\"logo\" id=\"logo-l\"><span></span></div>            <div class=\"search-box\" id=\"search-box\">\r\n",
      "\n",
      "176     <form action=\"/web\" name=\"sf\" id=\"sf\">\r\n",
      "\n",
      "177         <span class=\"sec-input-box\">\r\n",
      "\n",
      "178             <input type=\"text\" class=\"sec-input active\" name=\"query\" id=\"query\" maxlength=\"100\" len=\"80\" autocomplete=\"off\" />\r\n",
      "\n",
      "179         </span>\r\n",
      "\n",
      "180         <span class=\"enter-input\"><input type=\"submit\" value=\"\" id=\"stb\"></span>\r\n",
      "\n",
      "181         <input type=\"hidden\" name=\"_asf\" value=\"www.sogou.com\" />\r\n",
      "\n",
      "182         <input type=\"hidden\" name=\"_ast\" />\r\n",
      "\n",
      "183         <input type=\"hidden\" name=\"w\" value=\"01019900\" />\r\n",
      "\n",
      "184         <input type=\"hidden\" name=\"p\" value=\"40040100\" />\r\n",
      "\n",
      "185         <input type=\"hidden\" name=\"ie\" value=\"utf8\" />\r\n",
      "\n",
      "186                 <input type=\"hidden\" name=\"from\" value=\"index-nologin\" />\r\n",
      "\n",
      "187                 <input type=\"hidden\" name=\"s_from\" value=\"index\" />\r\n",
      "\n",
      "188         <div class=\"keywords-tips\" id=\"keywordsTips\" style=\"display:none\">\r\n",
      "\n",
      "189             <i></i><p>搜狗的查询限制在\"<strong>40个汉字</strong>\"以内。</p>\r\n",
      "\n",
      "190         </div>\r\n",
      "\n",
      "191     </form>\r\n",
      "\n",
      "192 </div>\r\n",
      "\n",
      "193         </div>\r\n",
      "\n",
      "194             <div class=\"card-box\" id=\"card-box\" style=\"display: none;\">\r\n",
      "\n",
      "195     <div class=\"card-box2\" id=\"card-box2\">\r\n",
      "\n",
      "196         <div class=\"c-top\" id=\"card-tab-box\">\r\n",
      "\n",
      "197             <a href=\"javascript:void(0);\" id=\"card-settings\" uigs-id=\"settings_settings-btn\" class=\"shezhi\"></a>\r\n",
      "\n",
      "198             <div class=\"pos-more\" id=\"card-options\">\r\n",
      "\n",
      "199                 <span class=\"ico-san\"></span>\r\n",
      "\n",
      "200                 <a href=\"javascript:void(0);\" uigs-id=\"settings_close-card\" id=\"close-card\">关闭卡片</a>\r\n",
      "\n",
      "201             </div>\r\n",
      "\n",
      "202         </div>\r\n",
      "\n",
      "203         <div class=\"c-main\" id=\"card-content\"></div>\r\n",
      "\n",
      "204     </div>\r\n",
      "\n",
      "205 </div>\r\n",
      "\n",
      "206 <div class=\"loog-more\" id=\"scroll-more\" style=\"display: none;\">\r\n",
      "\n",
      "207     <a href=\"javascript:void(0);\" uigs-id=\"scroll-more\">滚动查看更多<br><span class=\"ico_san\"></span></a>\r\n",
      "\n",
      "208 </div>            <div class=\"ft\" id=\"footer\" style=\"display: none;\">\r\n",
      "\n",
      "209     <a href=\"http://fuwu.sogou.com/\" target=\"_blank\" uigs-id=\"footer_tuiguang\">企业推广</a><span class=\"line\"></span><a href=\"http://corp.sogou.com/\" target=\"_blank\" uigs-id=\"footer_about\">关于搜狗</a><span class=\"line\"></span><a href=\"http://ir.sogou.com/\" target=\"_blank\" uigs-id=\"footer_aboutEnglish\">About Sogou</a><span class=\"line\"></span><a href=\"http://www.sogou.com/docs/terms.htm?v=1\" target=\"_blank\" uigs-id=\"footer_disclaimer\">免责声明</a><span class=\"line\"></span><a href=\"http://fankui.help.sogou.com/index.php/web/web/index/type/4\" target=\"_blank\"  uigs-id=\"footer_feedback\">意见反馈及投诉</a><span class=\"line\"></span><a href=\"http://corp.sogou.com/private.html\" target=\"_blank\" uigs-id=\"footer_private\">隐私政策</a><br>\r\n",
      "\n",
      "210     &copy;&nbsp;2004-2019&nbsp;Sogou.com&nbsp;/&nbsp;<span class=\"g\">京网文 (2016) 6432-852号</span>&nbsp;/&nbsp;<a href=\"http://www.miibeian.gov.cn\" target=\"_blank\" class=\"g\">京ICP证050897号</a><br>\r\n",
      "\n",
      "211     <span class=\"g\">(京)-经营性-2016-0019</span>&nbsp;/&nbsp;<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\" class=\"g\">京ICP备11001839号-1</a>&nbsp;/&nbsp;<a href=\"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000025\" class=\"ba\" target=\"_blank\">京公网安备11000002000025号</a>\r\n",
      "\n",
      "212 </div>\r\n",
      "\n",
      "213 <div class=\"ft-v1\" id=\"QRcode-footer\" style=\"padding-bottom:53px; \">\r\n",
      "\n",
      "214     <div class=\"erwm-box\">\r\n",
      "\n",
      "215         <span class=\"ewm\"></span>\r\n",
      "\n",
      "216         <div class=\"erwx\">\r\n",
      "\n",
      "217             <p>搜狗搜索APP</p>\r\n",
      "\n",
      "218             <p class=\"p2\">搜你所想</p>\r\n",
      "\n",
      "219         </div>\r\n",
      "\n",
      "220     </div>\r\n",
      "\n",
      "221     <div class=\"ft-info\">\r\n",
      "\n",
      "222         <a uigs-id=\"mid_pinyin\" href=\"http://pinyin.sogou.com/\" target=\"_blank\"><i class=\"i1\"></i>搜狗输入法</a><span class=\"line\"></span><a uigs-id=\"mid_liulanqi\" href=\"http://ie.sogou.com/\" target=\"_blank\"><i class=\"i2\"></i>浏览器</a><span class=\"line\"></span><a uigs-id=\"mid_daohang\" href=\"http://123.sogou.com/\" target=\"_blank\"><i class=\"i3\"></i>网址导航</a><br> <a href=\"http://corp.sogou.com/\" target=\"_blank\" class=\"g\">关于搜狗</a>&nbsp;-&nbsp;<a href=\"http://ir.sogou.com/\" target=\"_blank\" class=\"g\">About Sogou</a>&nbsp;-&nbsp;<a href=\"http://fuwu.sogou.com/\" target=\"_blank\" class=\"g\">企业推广</a>&nbsp;-&nbsp;<a href=\"http://www.sogou.com/docs/terms.htm?v=1\" target=\"_blank\" class=\"g\">免责声明</a>&nbsp;-&nbsp;<a href=\"http://fankui.help.sogou.com/index.php/web/web/index/type/4\" target=\"_blank\" class=\"g\">意见反馈及投诉</a>&nbsp;-&nbsp;<a href=\"http://corp.sogou.com/private.html\" target=\"_blank\" class=\"g\" uigs-id=\"footer_private\">隐私政策</a><br>\r\n",
      "\n",
      "223         &copy;&nbsp;2004-2019&nbsp;Sogou.com&nbsp;/&nbsp;<span class=\"g\">京网文 (2016) 6432-852号</span>&nbsp;/&nbsp;<span class=\"g\">(京)-经营性-2016-0019</span><br>\r\n",
      "\n",
      "224         <a href=\"http://www.miibeian.gov.cn\" target=\"_blank\" class=\"g\">京ICP证050897号</a>&nbsp;/&nbsp;<a href=\"http://www.miibeian.gov.cn/\" target=\"_blank\" class=\"g\">京ICP备11001839号-1</a>&nbsp;/&nbsp;<a href=\"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000025\" class=\"ba\" target=\"_blank\">京公网安备11000002000025号</a>\r\n",
      "\n",
      "225     </div>\r\n",
      "\n",
      "226 </div>            <div class=\"kuozhan\" id=\"QRcode-box\" style=\"display: none;\">\r\n",
      "\n",
      "227     <a href=\"javascript:void(0);\" id=\"miniQRcode\"></a>\r\n",
      "\n",
      "228     <span id=\"QRcode\"></span>\r\n",
      "\n",
      "229 </div>\r\n",
      "\n",
      "230 <a href=\"javascript:void(0);\" class=\"back-top\" id=\"back-top\"></a>    </div>\r\n",
      "\n",
      "231         <script>\r\n",
      "\n",
      "232     var SugPara, uigs_para,\r\n",
      "\n",
      "233         msBrowserName = navigator.userAgent.toLowerCase(),\r\n",
      "\n",
      "234         msIsSe = false,\r\n",
      "\n",
      "235         msIsMSearch = false,\r\n",
      "\n",
      "236         hasDoodle = false,\r\n",
      "\n",
      "237         queryinput = document.getElementById('query');\r\n",
      "\n",
      "238 \r\n",
      "\n",
      "239     uigs_para={\r\n",
      "\n",
      "240         \"uigs_productid\": \"webapp\",\r\n",
      "\n",
      "241         \"type\": \"webindex_new\",\r\n",
      "\n",
      "242         \"stype\": \"nologin\",\r\n",
      "\n",
      "243         \"scrnwi\": screen.width,\r\n",
      "\n",
      "244         \"scrnhi\": screen.height,\r\n",
      "\n",
      "245         \"uigs_pbtag\": \"A\",\r\n",
      "\n",
      "246         \"uigs_cookie\": \"SUID,sct\",\r\n",
      "\n",
      "247                 \"protocol\": location.protocol.toLowerCase() == \"https:\" ? \"https\" : \"http\"\r\n",
      "\n",
      "248     };\r\n",
      "\n",
      "249 \r\n",
      "\n",
      "250     SugPara = {\"enableSug\":true,\"sugType\":\"web\",\"domain\":\"w.sugg.sogou.com\",\"productId\":\"web\",\"sugFormName\":\"sf\",\"inputid\":\"query\",\"submitId\":\"stb\",\"suggestRid\":\"01015002\",\"normalRid\":\"01019900\",\"useParent\":0 ,\"sugglocation\":\"index\",\"showVr\":true,\"showHotwords\":true,\"suggAbtestObject\":{\"suggestHistoryStrategy1\":\"\",\"suggestHistoryStrategy2\":\"0|1|2|3|4|5|6|7|8\",\"suggHistoryAbtest\":\"\"}};\r\n",
      "\n",
      "251 \r\n",
      "\n",
      "252         \r\n",
      "\n",
      "253     function mk_con() {\r\n",
      "\n",
      "254         try {\r\n",
      "\n",
      "255             window.external.metasearch('make_connection', 'www.google.com.hk');\r\n",
      "\n",
      "256         } catch (e) {}\r\n",
      "\n",
      "257     }\r\n",
      "\n",
      "258 \r\n",
      "\n",
      "259     if (/se 2\\.x/i.test(msBrowserName)) {\r\n",
      "\n",
      "260         msIsSe = true;\r\n",
      "\n",
      "261     }\r\n",
      "\n",
      "262 \r\n",
      "\n",
      "263     if (/metasr/i.test(msBrowserName)) {\r\n",
      "\n",
      "264         msIsMSearch = true;\r\n",
      "\n",
      "265     }\r\n",
      "\n",
      "266 \r\n",
      "\n",
      "267     if (queryinput) {\r\n",
      "\n",
      "268         if (msIsSe && msIsMSearch) {\r\n",
      "\n",
      "269             if (queryinput.addEventListener) {\r\n",
      "\n",
      "270                 queryinput.addEventListener('keypress', mk_con, false);\r\n",
      "\n",
      "271                 queryinput.addEventListener('keydown', mk_con, false)\r\n",
      "\n",
      "272             } else if (queryinput.attachEvent) {\r\n",
      "\n",
      "273                 queryinput.attachEvent('onkeypress', mk_con);\r\n",
      "\n",
      "274                 queryinput.attachEvent('onkeydown', mk_con);\r\n",
      "\n",
      "275             } else {\r\n",
      "\n",
      "276                 queryinput.onkeypress = mk_con;\r\n",
      "\n",
      "277                 queryinput.onkeydown = mk_con;\r\n",
      "\n",
      "278             }\r\n",
      "\n",
      "279         }\r\n",
      "\n",
      "280     }\r\n",
      "\n",
      "281     function getDomain(){\r\n",
      "\n",
      "282         var domainName = document.domain;\r\n",
      "\n",
      "283         if(domainName.indexOf(\"sogou.com\")==(domainName.length-9)){\r\n",
      "\n",
      "284             return \".sogou.com\";\r\n",
      "\n",
      "285         }else if(domainName.indexOf(\"soso.com\")==(domainName.length-8)){\r\n",
      "\n",
      "286             return \".soso.com\";\r\n",
      "\n",
      "287         }else if(domainName.indexOf(\"sogo.com\") != -1){\r\n",
      "\n",
      "288             return \".sogo.com\"\r\n",
      "\n",
      "289         }\r\n",
      "\n",
      "290     }\r\n",
      "\n",
      "291     window.m_s_index = function() {\r\n",
      "\n",
      "292         var w = document.sf.query,\r\n",
      "\n",
      "293                 c = Math.round((new Date().getTime() + Math.random()) * 1000);\r\n",
      "\n",
      "294 \r\n",
      "\n",
      "295         w.focus();\r\n",
      "\n",
      "296 \r\n",
      "\n",
      "297         if(new RegExp(\"kw=([^&]+)\").test(location.search)) {\r\n",
      "\n",
      "298             if(w.value.length == 0) {\r\n",
      "\n",
      "299                 w.value = decodeURIComponent(RegExp.$1);\r\n",
      "\n",
      "300             }\r\n",
      "\n",
      "301         }\r\n",
      "\n",
      "302 \r\n",
      "\n",
      "303         if (document.cookie.indexOf(\"SUV=\") < 0) {\r\n",
      "\n",
      "304             document.cookie = \"SUV=\" + c + \";path=/;expires=Sun, 29 July 2026 00:00:00 UTC;domain=\"+getDomain();\r\n",
      "\n",
      "305         }\r\n",
      "\n",
      "306 \r\n",
      "\n",
      "307                             (new Image).src = '//pb6.sogou.com/v6';\r\n",
      "\n",
      "308         \r\n",
      "\n",
      "309     };\r\n",
      "\n",
      "310 \r\n",
      "\n",
      "311     function st(self, p, product, anchor) {\r\n",
      "\n",
      "312         var searchBox = document.sf.query,\r\n",
      "\n",
      "313             query = encodeURIComponent(searchBox.value),\r\n",
      "\n",
      "314 \r\n",
      "\n",
      "315             productUrl = {\r\n",
      "\n",
      "316                 \"news\": 'http://news.sogou.com/news?ie=utf8&query=',\r\n",
      "\n",
      "317                 \"web\": 'web?ie=utf8&query=',\r\n",
      "\n",
      "318                 \"weixin\": 'http://weixin.sogou.com/weixin?type=2&ie=utf8&query=',\r\n",
      "\n",
      "319                 \"zhihu\": 'http://zhihu.sogou.com/zhihu?ie=utf8&query=',\r\n",
      "\n",
      "320                 \"pic\": 'http://pic.sogou.com/pics?ie=utf8&query=',\r\n",
      "\n",
      "321                 \"video\": 'https://v.sogou.com/v?ie=utf8&query=',\r\n",
      "\n",
      "322                 \"myingyi\": 'https://www.sogou.com/web?m2web=mingyi.sogou.com&ie=utf8&query=',\r\n",
      "\n",
      "323                 \"overseas\": 'http://english.sogou.com?b_o_e=1&ie=utf8&fr=pcweb_index_nav&query=',\r\n",
      "\n",
      "324                 \"scholar\": 'http://scholar.sogou.com?ie=utf8&fr=common_index_nav&query=',\r\n",
      "\n",
      "325                 \"fanyi\": 'http://fanyi.sogou.com/?fr=common_index_nav_pc&ie=utf8&keyword=',\r\n",
      "\n",
      "326                 \"wenwen\":'http://wenwen.sogou.com/s/?ch=websearch&w=',\r\n",
      "\n",
      "327                 \"dangjian\":'http://dangjian.sogou.com/dangjian?query='\r\n",
      "\n",
      "328             },\r\n",
      "\n",
      "329             newHref = productUrl[product] || self.href;\r\n",
      "\n",
      "330 \r\n",
      "\n",
      "331         function getConnectSymbol(url) {\r\n",
      "\n",
      "332             return url.indexOf(\"?\") > -1 ? '&' : '?';\r\n",
      "\n",
      "333         }\r\n",
      "\n",
      "334 \r\n",
      "\n",
      "335         if(searchBox && searchBox.value !== ''){\r\n",
      "\n",
      "336 \r\n",
      "\n",
      "337             if(productUrl[product]) {\r\n",
      "\n",
      "338                 newHref = productUrl[product] + query;\r\n",
      "\n",
      "339             } else if(newHref.indexOf(\"kw=\") > 0) {\r\n",
      "\n",
      "340                 newHref = newHref.replace(new RegExp(\"kw=[^&$]*\"), \"kw=\" + query)\r\n",
      "\n",
      "341             } else {\r\n",
      "\n",
      "342                 newHref += getConnectSymbol(newHref) + 'kw=' + query;\r\n",
      "\n",
      "343             }\r\n",
      "\n",
      "344         }\r\n",
      "\n",
      "345 \r\n",
      "\n",
      "346         if(p){\r\n",
      "\n",
      "347             newHref += getConnectSymbol(newHref) + \"p=\" + p;\r\n",
      "\n",
      "348         }\r\n",
      "\n",
      "349 \r\n",
      "\n",
      "350         if (anchor && anchor.length > 0){\r\n",
      "\n",
      "351             newHref += \"#\" + anchor;\r\n",
      "\n",
      "352         }\r\n",
      "\n",
      "353 \r\n",
      "\n",
      "354         if (searchBox && searchBox.value == '' && (product == 'wenwen' || product == 'dangjian')){//问问首页链接单独处理\r\n",
      "\n",
      "355             newHref = self.href;\r\n",
      "\n",
      "356         }\r\n",
      "\n",
      "357 \r\n",
      "\n",
      "358         self.href = newHref;\r\n",
      "\n",
      "359     }\r\n",
      "\n",
      "360 \r\n",
      "\n",
      "361     window.cid = function(o, p) {\r\n",
      "\n",
      "362         var w = document.sf.query,\r\n",
      "\n",
      "363             q = encodeURIComponent(w.value);\r\n",
      "\n",
      "364 \r\n",
      "\n",
      "365         if (!q) {\r\n",
      "\n",
      "366             o.href += \"?cid=\" + p\r\n",
      "\n",
      "367         } else {\r\n",
      "\n",
      "368             if (p === \"web2ww\") {\r\n",
      "\n",
      "369                 o.href += \"s/?cid=web2ww&w=\" + q\r\n",
      "\n",
      "370             } else if (p === \"web2bk\") {\r\n",
      "\n",
      "371                 o.href += \"Search.e?sp=S\" + q + \"&cid=web2bk\"\r\n",
      "\n",
      "372             }\r\n",
      "\n",
      "373         }\r\n",
      "\n",
      "374     };\r\n",
      "\n",
      "375 \r\n",
      "\n",
      "376     window.m_s_index();\r\n",
      "\n",
      "377 </script>\r\n",
      "\n",
      "378 <script src=\"//dlweb.sogoucdn.com/common/lib/jquery/jquery-1.11.0.min.js\"></script>\r\n",
      "\n",
      "379 <script charset=\"gbk\" type=\"text/javascript\" src=\"/js/sugg_new.v.104.js\"></script>\r\n",
      "\n",
      "380 <script src=\"/js/pb_v.1.9.6.min.js\"></script>\r\n",
      "\n",
      "381 <script src=\"/js/lib/jquery.mousewheel.min.js\"></script>\r\n",
      "\n",
      "382 <script src=\"/js/lib/juicer-min.js\"></script>\r\n",
      "\n",
      "383 <script src=\"/js/common/widget/login_new.min.v.0.3.js\"></script>\r\n",
      "\n",
      "384 <script src=\"//account.sogou.com/static/api/passport-async.js\"></script>\r\n",
      "\n",
      "385 <script src=\"/web/index/js/base.v.1.1.14.js\"></script>\r\n",
      "\n",
      "386 <script src=\"/web/js/voice.min.v.0.0.6.js\"></script>\r\n",
      "\n",
      "387 <script src=\"/web/js/taspeed.min.v.0.0.1.js\"></script>\r\n",
      "\n",
      "388 </body>\r\n",
      "\n",
      "389 </html>\r\n",
      "\n",
      "390 <!--zly-->\n"
     ]
    }
   ],
   "source": [
    "print_list(result)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## geturl 返回请求的url"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 130,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "https://www.sogou.com/\n"
     ]
    }
   ],
   "source": [
    "response = request.urlopen('https://www.sogou.com/')\n",
    "#返回请求的url\n",
    "result = response.geturl()\n",
    "print(result)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 135,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# def progress(blk, blk_size, total_size):\n",
    "#     print('%d/%d - %.02f%%' % (blk * blk_size, total_size, (float)(blk * blk_size) * 100 / total_size))\n",
    "\n",
    "def callbackfunc(blocknum, blocksize, totalsize):\n",
    "    '''回调函数\n",
    "    @blocknum: 已经下载的数据块\n",
    "    @blocksize: 数据块的大小\n",
    "    @totalsize: 远程文件的大小\n",
    "    '''\n",
    "    percent = 100.0 * blocknum * blocksize / totalsize\n",
    "    if percent > 100:\n",
    "        percent = 100\n",
    "    print (\"%.2f%%\"% percent)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## urlretrieve 把源码保存为一个文件"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 141,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#把源码保存为一个html文件\n",
    "def retrieve():\n",
    "#     request.urlretrieve('https://www.sogou.com/', 'index.html', reporthook=callbackfunc)\n",
    "  request.urlretrieve('https://www.sogou.com/', 'index.csv', reporthook=callbackfunc)\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 142,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "-0.00%\n",
      "-819200.00%\n",
      "-1638400.00%\n",
      "-2457600.00%\n"
     ]
    }
   ],
   "source": [
    "retrieve()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## urlencode 编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "score=100&name=%E7%88%AC%E8%99%AB%E5%9F%BA%E7%A1%80&comment=very+good\n",
      "{'score': ['100'], 'name': ['爬虫基础'], 'comment': ['very good']}\n"
     ]
    }
   ],
   "source": [
    "import urllib.parse\n",
    "\n",
    "def urlencode():\n",
    "    params = {'score': 100, 'name': '爬虫基础', 'comment': 'very good'}\n",
    "    \n",
    "    #编码\n",
    "    qs = urllib.parse.urlencode(params)\n",
    "    print(qs)\n",
    "    \n",
    "    #解码\n",
    "    print(urllib.parse.parse_qs(qs))\n",
    "#    print(parse.parse_qs(qs))\n",
    "\n",
    "\n",
    "\n",
    "urlencode()\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "collapsed": true
   },
   "source": [
    "## 例子1   获取股票数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 36,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# encoding:utf-8\n",
    "#导包\n",
    "from urllib import request\n",
    "# import urllib.parse\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "var hq_str_s_sh000001=\"上证指数,2610.5094,0.0000,0.00,0,0\";\n",
      "var hq_str_s_sh600028=\"中国石化,5.480,0.000,0.00,0,0\";\n",
      "\n"
     ]
    }
   ],
   "source": [
    "response = request.urlopen('http://hq.sinajs.cn/list=s_sh000001,s_sh600028')\n",
    "html = response.read().decode(\"gbk\",\"ignore\")\n",
    "\n",
    "print(html)\n",
    "# line.decode(\"utf8\",\"ignore\")\n",
    "# print_list(html)\n",
    "#解码\n",
    "# print(urllib.parse.parse_qs(qs))\n",
    "    \n",
    "# print(urllib.parse.parse_qs(html))\n",
    "# page = html.decode('utf-8')\n",
    "\n",
    "# response = request.urlopen('https://www.sogou.com/') # 发起请求sogou.com\n",
    "# html = response.read(100) #获取到页面的源代码 read返回bytes,读100个字节\n",
    "# page = html.decode('utf-8') # 转化为 utf-8 编码\n",
    "# print(page)\n",
    "\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 使用正则表达式获取需要的部分"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "#导入正则表达式\n",
    "import re\n",
    "from urllib import request"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 45,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "['上证指数,2609.6421,-0.8673,-0.03,11373,82605', '中国石化,5.480,0.000,0.00,3346,183']\n"
     ]
    }
   ],
   "source": [
    "response = request.urlopen('http://hq.sinajs.cn/list=s_sh000001,s_sh600028')\n",
    "html = response.read().decode(\"gbk\",\"ignore\")\n",
    "#截取需要的部分\n",
    "html = re.findall('=\\\"(.*?)\\\";',html)\n",
    "print(html)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 46,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "上证指数,2609.6421,-0.8673,-0.03,11373,82605\n",
      "中国石化,5.480,0.000,0.00,3346,183\n"
     ]
    }
   ],
   "source": [
    "for i in html:\n",
    "    print (i)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "### 把获取到的股票数据，存为文档"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def download_stock_data(stock_list):\n",
    "    for sid in stock_list:\n",
    "        url = 'http://hq.sinajs.cn/list=' + sid\n",
    "        fname = sid + '.csv'\n",
    "        print('downloading %s form %s' % (fname, url))\n",
    "        request.urlretrieve(url, fname) #把源码保存为文件，有问题，保存的文件中文乱码，未解决"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 51,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "downloading s_sh000001.csv form http://hq.sinajs.cn/list=s_sh000001\n",
      "downloading s_sh600028.csv form http://hq.sinajs.cn/list=s_sh600028\n"
     ]
    }
   ],
   "source": [
    "stock_list = ['s_sh000001','s_sh600028']\n",
    "download_stock_data(stock_list)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 函数--把字符串保存为文件"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def save_to_file(file_name, contents):\n",
    "    fh = open(file_name, 'w')\n",
    "    fh.write(contents)\n",
    "    fh.close()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {
    "collapsed": false
   },
   "outputs": [],
   "source": [
    "def download_stock_data_decode(stock_list):\n",
    "    for sid in stock_list:\n",
    "        url = 'http://hq.sinajs.cn/list=' + sid\n",
    "        fname = sid + '.csv'\n",
    "        #读取html源码并转为gbk编码\n",
    "        response = request.urlopen(url)\n",
    "        html = response.read().decode(\"gbk\",\"ignore\")\n",
    "        #截取部分\n",
    "        html = re.findall('=\\\"(.*?)\\\";',html)\n",
    "        html = html[0]\n",
    "        #显示出地址\n",
    "        print('downloading %s form %s' % (fname, url))\n",
    "        #保存为文件\n",
    "        save_to_file(fname, html) \n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 解决股票乱码问题"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "downloading s_sh000001.csv form http://hq.sinajs.cn/list=s_sh000001\n",
      "downloading s_sh600028.csv form http://hq.sinajs.cn/list=s_sh600028\n"
     ]
    }
   ],
   "source": [
    "stock_list = ['s_sh000001','s_sh600028']\n",
    "download_stock_data_decode(stock_list)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 新浪股票数据接口"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "方法3：http://money.finance.sina.com.cn/quotes_service/api/json_v2.php/CN_MarketData.getKLineData?symbol=[市场][股票代码]&scale=[周期]&ma=no&datalen=[长度]\n",
    "\n",
    "返回结果：获取5、10、30、60分钟JSON数据；day日期、open开盘价、high最高价、low最低价、close收盘价、volume成交量；向前复权的数据。\n",
    "\n",
    "注意，最多只能获取最近的1023个数据节点。\n",
    "\n",
    "例如，http://money.finance.sina.com.cn/quotes_service/api/json_v2.php/CN_MarketData.getKLineData?symbol=sz002095&scale=60&ma=no&datalen=1023，\n",
    "获取深圳市场002095股票的60分钟数据，获取最近的1023个节点。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import json"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 40,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "def sina_stock_list():\n",
    "    url = \"http://money.finance.sina.com.cn/quotes_service/api/json_v2.php/CN_MarketData.getKLineData?symbol=sz002095&scale=60&ma=no&datalen=10\"\n",
    "    #读取html源码并转为utf-8编码\n",
    "    response = request.urlopen(url)\n",
    "    html = response.read().decode(\"utf-8\",\"ignore\")\n",
    "#     html = json.dumps(html)\n",
    "#     html = json.loads(html)\n",
    "#     print(type(html))\n",
    "    print(html)\n",
    "#     html = html.split(\",\")\n",
    "#     print(len(html))\n",
    "#     print(type(html))\n",
    "    \n",
    "#     print(type(html))\n",
    "#     for i in len(html):\n",
    "#         print(str(i))\n",
    "#         print(html[i])\n",
    "\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 41,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[{day:\"2019-01-21 10:30:00\",open:\"19.930\",high:\"20.200\",low:\"19.930\",close:\"20.170\",volume:\"963627\"},{day:\"2019-01-21 11:30:00\",open:\"20.170\",high:\"20.300\",low:\"20.100\",close:\"20.280\",volume:\"870500\"},{day:\"2019-01-21 14:00:00\",open:\"20.280\",high:\"20.280\",low:\"20.040\",close:\"20.040\",volume:\"409700\"},{day:\"2019-01-21 15:00:00\",open:\"20.040\",high:\"20.100\",low:\"19.950\",close:\"20.100\",volume:\"756093\"},{day:\"2019-01-22 10:30:00\",open:\"20.290\",high:\"20.350\",low:\"19.830\",close:\"19.940\",volume:\"783282\"},{day:\"2019-01-22 11:30:00\",open:\"19.900\",high:\"19.980\",low:\"19.710\",close:\"19.760\",volume:\"609018\"},{day:\"2019-01-22 14:00:00\",open:\"19.760\",high:\"19.780\",low:\"19.660\",close:\"19.730\",volume:\"443209\"},{day:\"2019-01-22 15:00:00\",open:\"19.740\",high:\"19.750\",low:\"19.620\",close:\"19.730\",volume:\"619792\"},{day:\"2019-01-23 10:30:00\",open:\"19.500\",high:\"19.730\",low:\"19.400\",close:\"19.560\",volume:\"595900\"},{day:\"2019-01-23 11:30:00\",open:\"19.560\",high:\"19.570\",low:\"19.560\",close:\"19.570\",volume:\"8500\"}]\n"
     ]
    }
   ],
   "source": [
    "sina_stock_list()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 44,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "import urllib.parse"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 47,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "\n",
    "def sina_stock_data_param():\n",
    "    url = \"http://money.finance.sina.com.cn/quotes_service/api/json_v2.php/CN_MarketData.getKLineData?\"\n",
    "    params = {\"symbol\":\"sz002095\",\"scale\":60,\"ma\":\"no\",\"datalen\":10}\n",
    "    qs = urllib.parse.urlencode(params)\n",
    "    url = url + qs\n",
    "    response = request.urlopen(url)\n",
    "    html = response.read().decode(\"utf-8\",\"ignore\")\n",
    "    print(html)\n",
    "\n",
    "    "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 48,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[{day:\"2019-01-21 10:30:00\",open:\"19.930\",high:\"20.200\",low:\"19.930\",close:\"20.170\",volume:\"963627\"},{day:\"2019-01-21 11:30:00\",open:\"20.170\",high:\"20.300\",low:\"20.100\",close:\"20.280\",volume:\"870500\"},{day:\"2019-01-21 14:00:00\",open:\"20.280\",high:\"20.280\",low:\"20.040\",close:\"20.040\",volume:\"409700\"},{day:\"2019-01-21 15:00:00\",open:\"20.040\",high:\"20.100\",low:\"19.950\",close:\"20.100\",volume:\"756093\"},{day:\"2019-01-22 10:30:00\",open:\"20.290\",high:\"20.350\",low:\"19.830\",close:\"19.940\",volume:\"783282\"},{day:\"2019-01-22 11:30:00\",open:\"19.900\",high:\"19.980\",low:\"19.710\",close:\"19.760\",volume:\"609018\"},{day:\"2019-01-22 14:00:00\",open:\"19.760\",high:\"19.780\",low:\"19.660\",close:\"19.730\",volume:\"443209\"},{day:\"2019-01-22 15:00:00\",open:\"19.740\",high:\"19.750\",low:\"19.620\",close:\"19.730\",volume:\"619792\"},{day:\"2019-01-23 10:30:00\",open:\"19.500\",high:\"19.730\",low:\"19.400\",close:\"19.560\",volume:\"595900\"},{day:\"2019-01-23 11:30:00\",open:\"19.560\",high:\"19.640\",low:\"19.560\",close:\"19.590\",volume:\"67100\"}]\n"
     ]
    }
   ],
   "source": [
    "sina_stock_data_param()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## URLError"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 53,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not Found\n"
     ]
    }
   ],
   "source": [
    "import urllib.error\n",
    "import urllib.request\n",
    "requset = urllib.request.Request('http://blog.kamidox.com/no-exist')\n",
    "try:\n",
    "    urllib.request.urlopen(requset).read()\n",
    "except urllib.error.URLError as e:\n",
    "    print(e.reason)\n",
    "else:\n",
    "    print('success')"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Urllib3 模块使用"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## request GET请求"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 58,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "200\n"
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\Program Files\\Anaconda3\\lib\\site-packages\\urllib3\\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n",
      "  InsecureRequestWarning)\n"
     ]
    }
   ],
   "source": [
    "import urllib3\n",
    "import requests\n",
    "#  忽略警告：InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised.\n",
    "requests.packages.urllib3.disable_warnings()\n",
    "# 一个PoolManager实例来生成请求, 由该实例对象处理与线程池的连接以及线程安全的所有细节\n",
    "http = urllib3.PoolManager()\n",
    "# 通过request()方法创建一个请求：\n",
    "r = http.request('GET', 'http://www.sogou.com')\n",
    "print(r.status) # 200\n",
    "# 获得html源码,utf-8解码\n",
    "# print(r.data.decode())"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## request GET请求(添加数据)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 62,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "C:\\Program Files\\Anaconda3\\lib\\site-packages\\urllib3\\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n",
      "  InsecureRequestWarning)\n",
      "C:\\Program Files\\Anaconda3\\lib\\site-packages\\urllib3\\connectionpool.py:847: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings\n",
      "  InsecureRequestWarning)\n"
     ]
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "200\n",
      "<!DOCTYPE html>\n",
      "<!--STATUS OK-->\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\t\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\r\n",
      "\t\r\n",
      "        \r\n",
      "\t\t\t        \r\n",
      "\t\r\n",
      "\t\t\t        \r\n",
      "\t\r\n",
      "\t\t\t        \r\n",
      "\t\r\n",
      "\t\t\t        \r\n",
      "\t\t\t    \r\n",
      "\r\n",
      "\t\r\n",
      "        \r\n",
      "\t\t\t        \r\n",
      "\t\r\n",
      "\t\t\t        \r\n",
      "\t\r\n",
      "\t\t\t        \r\n",
      "\t\r\n",
      "\t\t\t        \r\n",
      "\t\t\t    \r\n",
      "\r\n",
      "\r\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "<html>\n",
      "<head>\n",
      "    \n",
      "    <meta http-equiv=\"content-type\" content=\"text/html;charset=utf-8\">\n",
      "    <meta http-equiv=\"X-UA-Compatible\" content=\"IE=Edge\">\n",
      "\t<meta content=\"always\" name=\"referrer\">\n",
      "    <meta name=\"theme-color\" content=\"#2932e1\">\n",
      "    <link rel=\"shortcut icon\" href=\"/favicon.ico\" type=\"image/x-icon\" />\n",
      "    <link rel=\"search\" type=\"application/opensearchdescription+xml\" href=\"/content-search.xml\" title=\"百度搜索\" />\n",
      "    <link rel=\"icon\" sizes=\"any\" mask href=\"//www.baidu.com/img/baidu_85beaf5496f291521eb75ba38eacbd87.svg\">\n",
      "\t\n",
      "\t\n",
      "\t<link rel=\"dns-prefetch\" href=\"//s1.bdstatic.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//t1.baidu.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//t2.baidu.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//t3.baidu.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//t10.baidu.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//t11.baidu.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//t12.baidu.com\"/>\n",
      "\t<link rel=\"dns-prefetch\" href=\"//b1.bdstatic.com\"/>\n",
      "    \n",
      "    <title>百度一下，你就知道</title>\n",
      "    \n",
      "\n",
      "<style id=\"css_index\" index=\"index\" type=\"text/css\">html,body{height:100%}\n",
      "html{overflow-y:auto}\n",
      "body{font:12px arial;text-align:;background:#fff}\n",
      "body,p,form,ul,li{margin:0;padding:0;list-style:none}\n",
      "body,form,#fm{position:relative}\n",
      "td{text-align:left}\n",
      "img{border:0}\n",
      "a{color:#00c}\n",
      "a:active{color:#f60}\n",
      "input{border:0;padding:0}\n",
      "#wrapper{position:relative;_position:;min-height:100%}\n",
      "#head{padding-bottom:100px;text-align:center;*z-index:1}\n",
      "#ftCon{height:50px;position:absolute;bottom:47px;text-align:left;width:100%;margin:0 auto;z-index:0;overflow:hidden}\n",
      ".ftCon-Wrapper{overflow:hidden;margin:0 auto;text-align:center;*width:640px}\n",
      ".qrcodeCon{text-align:center;position:absolute;bottom:140px;height:60px;width:100%}\n",
      "#qrcode{display:inline-block;*float:left;*margin-top:4px}\n",
      "#qrcode .qrcode-item{float:left}\n",
      "#qrcode .qrcode-item-2{margin-left:33px}\n",
      "#qrcode .qrcode-img{width:60px;height:60px}\n",
      "#qrcode .qrcode-item-1 .qrcode-img{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/qrcode/zbios_efde696.png) 0 0 no-repeat}\n",
      "#qrcode .qrcode-item-2 .qrcode-img{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/qrcode/nuomi_365eabd.png) 0 0 no-repeat}\n",
      "@media only screen and (-webkit-min-device-pixel-ratio:2){#qrcode .qrcode-item-1 .qrcode-img{background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/qrcode/zbios_x2_9d645d9.png);background-size:60px 60px}\n",
      "#qrcode .qrcode-item-2 .qrcode-img{background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/qrcode/nuomi_x2_55dc5b7.png);background-size:60px 60px}}\n",
      "#qrcode .qrcode-text{color:#999;line-height:23px;margin:3px 0 0}\n",
      "#qrcode .qrcode-text a{color:#999;text-decoration:none}\n",
      "#qrcode .qrcode-text p{text-align:center}\n",
      "#qrcode .qrcode-text b{color:#666;font-weight:700}\n",
      "#qrcode .qrcode-text span{letter-spacing:1px}\n",
      "#ftConw{display:inline-block;text-align:left;margin-left:33px;line-height:22px;position:relative;top:-2px;*float:right;*margin-left:0;*position:static}\n",
      "#ftConw,#ftConw a{color:#999}\n",
      "#ftConw{text-align:center;margin-left:0}\n",
      ".bg{background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_5859e57.png);background-repeat:no-repeat;_background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_d5b04cc.gif)}\n",
      ".c-icon{display:inline-block;width:14px;height:14px;vertical-align:text-bottom;font-style:normal;overflow:hidden;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_5859e57.png) no-repeat 0 0;_background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_d5b04cc.gif)}\n",
      ".c-icon-triangle-down-blue{background-position:-480px -168px}\n",
      ".c-icon-chevron-unfold2{background-position:-504px -168px}\n",
      "#m{width:720px;margin:0 auto}\n",
      "#nv a,#nv b,.btn,#lk{font-size:14px}\n",
      "#nv{height:19px;font-size:16px;margin:0 0 4px;text-align:left;text-indent:137px}\n",
      ".s_btn{width:95px;height:32px;padding-top:2px\\9;font-size:14px;background-color:#ddd;background-position:0 -48px;cursor:pointer}\n",
      ".s_btn_h{background-position:-240px -48px}\n",
      ".s_btn_wr{width:97px;height:34px;display:inline-block;background-position:-120px -48px;*position:relative;z-index:0;vertical-align:top}\n",
      "#jgwab{margin-left:19px}\n",
      "#cp .c-icon-icrlogo,.c-icon-jgwablogo{width:14px;height:17px;display:inline-block;overflow:hidden;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_5859e57.png) no-repeat;_background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/icons_d5b04cc.gif)}\n",
      "#cp .c-icon-icrlogo{background-position:-600px -96px;position:relative;top:3px}\n",
      ".c-icon-jgwablogo{background-position:-623px -96px;position:relative;top:3px}\n",
      "#shouji{margin-right:14px}\n",
      "#u{display:none}\n",
      "#c-tips-container{display:none}\n",
      "#wrapper{min-width:810px;height:100%;min-height:600px}\n",
      "#head{position:relative;padding-bottom:0;height:100%;min-height:600px}\n",
      "#head .head_wrapper{height:100%}\n",
      "#m{position:relative}\n",
      "#fm{padding-left:40px;top:-37px}\n",
      "#lh a{margin-left:62px}\n",
      "#lh #seth,#lh #setf{margin-left:0}\n",
      "#lk{position:absolute;display:none;top:0;right:0;margin:33px 0}\n",
      "#lk span{font:14px \"宋体\"}\n",
      "#nv{position:absolute;display:none;top:0;right:0}\n",
      "#lm{color:#666;width:100%;height:60px;margin-top:60px;line-height:15px;font-size:13px;position:absolute;top:0;left:0}\n",
      "#lm a{color:#666}\n",
      "#pad-version{line-height:40px}\n",
      ".s_ipt_wr.bg,.s_btn_wr.bg,#su.bg{background-image:none}\n",
      ".s_btn_wr{width:auto;height:auto;border-bottom:1px solid transparent;*border-bottom:0}\n",
      ".s_btn{width:100px;height:36px;color:#fff;font-size:15px;letter-spacing:1px;background:#3385ff;border-bottom:1px solid #2d78f4;outline:medium;*border-bottom:0;-webkit-appearance:none;-webkit-border-radius:0}\n",
      ".s_btn.btnhover{background:#317ef3;border-bottom:1px solid #2868c8;*border-bottom:0;box-shadow:1px 1px 1px #ccc}\n",
      ".s_btn_h{background:#3075dc;box-shadow:inset 1px 1px 5px #2964bb;-webkit-box-shadow:inset 1px 1px 5px #2964bb;-moz-box-shadow:inset 1px 1px 5px #2964bb;-o-box-shadow:inset 1px 1px 5px #2964bb}\n",
      "#result_logo{display:none}\n",
      "#index_logo img{display:inline-block;width:270px;height:129px}\n",
      "#s_tab{display:none}\n",
      ".s_form{position:relative;top:38.2%}\n",
      ".s_form_wrapper{position:relative;top:-191px}\n",
      ".s_ipt_wr{height:34px}\n",
      "#head .c-icon-bear-round{display:none}\n",
      "#form{margin:22px auto 0;width:641px;text-align:left;z-index:100}\n",
      "#form .bdsug,#fm .bdsug{top:35px}\n",
      ".bdsug{display:none;position:absolute;width:538px;background:#fff;border:1px solid #ccc;_overflow:hidden;box-shadow:1px 1px 3px #ededed;-webkit-box-shadow:1px 1px 3px #ededed;-moz-box-shadow:1px 1px 3px #ededed;-o-box-shadow:1px 1px 3px #ededed}\n",
      ".bdsug.bdsugbg ul{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/sugbg_1762fe7.png) 100% 100% no-repeat;background-size:100px 110px;background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/sugbg_90fc9cf.gif)\\9}\n",
      ".bdsug li{width:522px;color:#000;font:14px arial;line-height:25px;padding:0 8px;position:relative;cursor:default}\n",
      ".bdsug li.bdsug-s{background:#f0f0f0}\n",
      ".bdsug-store span,.bdsug-store b{color:#7A77C8}\n",
      ".bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}\n",
      ".bdsug-s .bdsug-store-del{display:inline-block}\n",
      ".bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}\n",
      ".bdsug-ala h3{line-height:14px;background:url(//www.baidu.com/img/sug_bd.png) no-repeat left center;margin:8px 0 5px;font-size:12px;font-weight:400;color:#7B7B7B;padding-left:20px}\n",
      ".bdsug-ala p{font-size:14px;font-weight:700;padding-left:20px}\n",
      ".bdsug .bdsug-direct{width:auto;padding:0;border-bottom:1px solid #f1f1f1}\n",
      ".bdsug .bdsug-direct p{color:#00c;font-weight:700;line-height:34px;padding:0 8px;cursor:pointer;white-space:nowrap;overflow:hidden}\n",
      ".bdsug .bdsug-direct p img{width:16px;height:16px;margin:7px 6px 9px 0;vertical-align:middle}\n",
      ".bdsug .bdsug-direct p span{margin-left:8px}\n",
      ".bdsug .bdsug-direct p i{font-size:12px;line-height:100%;font-style:normal;font-weight:400;color:#fff;background-color:#2b99ff;display:inline;text-align:center;padding:1px 5px;*padding:2px 5px 0;margin-left:8px;overflow:hidden}\n",
      ".bdsug .bdsug-pcDirect{color:#000;font-size:14px;line-height:30px;height:30px;background-color:#f8f8f8}\n",
      ".bdsug .bdsug-pc-direct-tip{position:absolute;right:15px;top:8px;width:55px;height:15px;display:block;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/pc_direct_42d6311.png) no-repeat 0 0}\n",
      ".bdsug li.bdsug-pcDirect-s{background-color:#f0f0f0}\n",
      ".bdsug .bdsug-pcDirect-is{color:#000;font-size:14px;line-height:22px;background-color:#f8f8f8}\n",
      ".bdsug .bdsug-pc-direct-tip-is{position:absolute;right:15px;top:3px;width:55px;height:15px;display:block;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/pc_direct_42d6311.png) no-repeat 0 0}\n",
      ".bdsug li.bdsug-pcDirect-is-s{background-color:#f0f0f0}\n",
      ".bdsug .bdsug-pcDirect-s .bdsug-pc-direct-tip,.bdsug .bdsug-pcDirect-is-s .bdsug-pc-direct-tip-is{background-position:0 -15px}\n",
      ".bdsug .bdsug-newicon{color:#929292;opacity:.7;font-size:12px;display:inline-block;line-height:22px;letter-spacing:2px}\n",
      ".bdsug .bdsug-s .bdsug-newicon{opacity:1}\n",
      ".bdsug .bdsug-newicon i{letter-spacing:0;font-style:normal}\n",
      ".bdsug .bdsug-feedback-wrap{text-align:right;background:#fafafa;color:#666;height:25px;line-height:25px;display:none}\n",
      ".bdsug .bdsug-feedback{margin-right:10px;text-decoration:underline;color:#666}\n",
      ".toggle-underline{text-decoration:none}\n",
      ".toggle-underline:hover{text-decoration:underline}\n",
      ".tools{position:absolute;right:-75px}\n",
      "#mHolder{width:62px;position:relative;z-index:296;display:none}\n",
      "#mCon{height:18px;line-height:18px;position:absolute;cursor:pointer}\n",
      "#mCon span{color:#00c;display:block;width:24px}\n",
      "#mCon .hw{text-decoration:underline;cursor:pointer;display:inline-block}\n",
      "#mCon .pinyin{display:inline-block}\n",
      "#mCon .c-icon-chevron-unfold2{margin-left:5px}\n",
      "#mMenu a{width:100%;height:100%;display:block;line-height:22px;text-indent:6px;text-decoration:none;filter:none\\9}\n",
      "#mMenu,#user ul{box-shadow:1px 1px 2px #ccc;-moz-box-shadow:1px 1px 2px #ccc;-webkit-box-shadow:1px 1px 2px #ccc;filter:progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color=#cccccc)\\9}\n",
      "#mMenu{width:56px;border:1px solid #9b9b9b;list-style:none;position:absolute;right:27px;top:28px;display:none;background:#fff}\n",
      "#mMenu a:hover{background:#ebebeb}\n",
      "#mMenu .ln{height:1px;background:#ebebeb;overflow:hidden;font-size:1px;line-height:1px;margin-top:-1px}\n",
      "#u1 a:link,#u1 a:visited{color:#666;text-decoration:none}\n",
      "#u1 a:hover,#u1 a:active{text-decoration:underline}\n",
      "#u1 a:active{color:#00c}\n",
      "#u1{z-index:2;color:#fff;position:absolute;right:0;top:0;margin:19px 0 5px;padding:0 96px 0 0}\n",
      "#u1 .reg{display:none}\n",
      "#u1 a.pf,#u1 a.pf:visited{display:inline-block;float:left;color:#333;line-height:24px;font-size:13px;margin-left:20px;overflow:hidden;text-decoration:underline}\n",
      "#u1 a.lb,#u1 a.lb:visited,#u1 a.username{display:inline-block;float:left;color:#333;font-size:13px;line-height:24px;margin-left:20px;text-decoration:underline}\n",
      "#u1 a.bri,#u1 a.bri:visited{display:inline-block;position:absolute;right:10px;width:60px;height:23px;float:left;color:#fff;background:#38f;line-height:24px;font-size:13px;text-align:center;overflow:hidden;border-bottom:1px solid #38f;margin-left:19px;margin-right:2px}\n",
      "#u1 a.bri.brihover{display:none;text-decoration:none;color:#333;background:0 0;border-bottom:1px solid transparent;margin-left:19px}\n",
      "#u1 #lm a{color:#00c;text-decoration:underline}\n",
      "#u1 a.mnav,#u1 a.mnav:visited{float:left;color:#333;font-weight:700;line-height:24px;margin-left:20px;font-size:13px;text-decoration:underline}\n",
      "#u1 a.pf:hover,#u1 a.lb:hover,#u1 a.mnav:hover{color:#00c}\n",
      ".briiconsbg{background-repeat:no-repeat;background-size:300px 18px;background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_0c37e9b.png);background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_809ae65.gif)\\9}\n",
      ".bdpfmenu{background-color:#fff;border:1px solid #d1d1d1;position:absolute;right:160px;width:68px;top:36px;margin-top:-1px;_margin-top:-3px;z-index:2;box-shadow:1px 1px 5px #d1d1d1;-webkit-box-shadow:1px 1px 5px #d1d1d1;-moz-box-shadow:1px 1px 5px #d1d1d1;-o-box-shadow:1px 1px 5px #d1d1d1}\n",
      ".bdpfmenu a{display:block;text-align:left;margin:0!important;padding:0 9px;line-height:26px;text-decoration:none}\n",
      "#wrapper .bdpfmenu a:link,#wrapper .bdpfmenu a:visited{background:#fff;color:#333}\n",
      "#wrapper .bdpfmenu a:hover,#wrapper .bdpfmenu a:active{background:#38f;text-decoration:none;color:#fff}\n",
      "#wrapper .bdnuarrow{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;top:-10px;left:50%;margin-left:-5px}\n",
      "#wrapper .bdnuarrow em,#wrapper .bdnuarrow i{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;border:5px solid transparent;border-style:dashed dashed solid}\n",
      "#wrapper .bdnuarrow em{border-bottom-color:#d8d8d8;top:-1px}\n",
      "#wrapper .bdnuarrow i{border-bottom-color:#fff;top:0}\n",
      ".s-isindex-wrap #wrapper .bdnuarrow{height:13px;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_0c37e9b.png) no-repeat -90px -1px}\n",
      "#wrapper .bdnuarrow.bdbriarrow{right:104px;display:none!important}\n",
      "#wrapper .bdbri{width:85px;min-height:100px;border-left:1px solid #e7e7e7;position:absolute;background-color:#f9f9f9;overflow:hidden;z-index:2;right:0;top:0}\n",
      "#prefpanel{background:#fafafa;display:none;opacity:0;position:fixed;_position:absolute;top:-359px;z-index:1000;width:100%;min-width:960px;border-bottom:1px solid #ebebeb}\n",
      "#prefpanel form{_width:850px}\n",
      "#wrapper .bdbriimgtitle{color:#333;text-align:center;width:66px;height:43px;line-height:43px;padding-top:9px;margin:0 auto;border-bottom:#f0f0f0 1px solid;font-size:13px;cursor:default}\n",
      "#wrapper .briscrollwrapper{overflow:hidden}\n",
      "#wrapper .briscrollwrapperContainer{position:relative}\n",
      "#wrapper .bdbri.bdbriimg .bdmainlink a,#wrapper .bdbri.bdbriimg .bdothlink a{display:block;text-align:center;width:66px;height:76px;margin:0 auto;border-bottom:#f0f0f0 1px solid;color:#666;text-decoration:none;overflow:hidden}\n",
      "#wrapper .bdbri.bdbriimg .bdmainlink a:visited,#wrapper .bdbri.bdbriimg .bdothlink a:visited{color:#666}\n",
      "#wrapper .bdbri.bdbriimg .bdmainlink a:hover,#wrapper .bdbri.bdbriimg .bdothlink a:hover{color:#666;text-decoration:underline}\n",
      "#wrapper .bdbri.bdbriimg .bdmainlink a:active,#wrapper .bdbri.bdbriimg .bdothlink a:active{color:#00c;text-decoration:underline}\n",
      "#wrapper .bdbri.bdbriimg span{width:36px;height:36px;display:block;margin:10px auto 5px;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/bdbri_icons_194ae06.png) no-repeat;cursor:pointer}\n",
      "#wrapper .bdbri.bdbriimg .bdbrimore,#wrapper .bdbri.bdbriimg .bdbrievenmore{clear:both;text-align:center}\n",
      "#wrapper .bdbri.bdbriimg .bdbrievenmore{margin-top:15px;height:30px;width:85px;overflow:hidden}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_1{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/nuomi_7f5cd35.png) no-repeat;background-size:cover}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_2{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/zhidao_cbf2aff.png) no-repeat;background-size:cover}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_3{width:36px;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/qqjt_9809ca8.png) no-repeat;background-size:cover}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_4{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/image_55b5909.png) no-repeat;background-size:cover}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_5{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/wenku_aaf198d.png) no-repeat;background-size:cover}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_6{background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/logos/fengyunbang_1986a40.png) no-repeat;background-size:cover}\n",
      "#wrapper .bdbri.bdbriimg span.bdbriimgitem_7{background-position:-220px 0}\n",
      "#wrapper .bdbri.bdbriimg .bdbrievenmore a:link,#wrapper .bdbri.bdbriimg .bdbrievenmore a:visited{color:#666;text-decoration:underline}\n",
      "#wrapper .bdbri.bdbriimg .bdbrievenmore a:hover{color:#666;text-decoration:underline}\n",
      "#wrapper .bdbri.bdbriimg .bdbrievenmore a:active{color:#00c}\n",
      ".bdbriscroll-ctrl-scroll{position:absolute;top:10px;right:1px;width:8px;border-top:1px solid #e4e4e4;border-left:1px solid #e4e4e4;cursor:default;-webkit-user-select:none;-moz-user-select:none}\n",
      ".bdbriscroll-ctrl-scroll .bdbriscroll-axis{width:8px;left:0;z-index:0;position:absolute;background:#f2f2f2}\n",
      ".bdbriscroll-ctrl-scroll-touch .bdbriscroll-axis{width:7px;background:#f2f2f2}\n",
      ".bdbriscroll-ctrl-scroll-hover .bdbriscroll-axis{background:#f2f2f2}\n",
      ".bdbriscroll-ctrl-scroll .bdbriscroll-slider{overflow:hidden;width:7px;height:14px;position:absolute;left:0;z-index:10;display:none;background:#d9d9d9;margin-top:-1px;margin-left:-1px;border-right:1px solid #cecece;border-bottom:1px solid #cecece;cursor:default}\n",
      ".bdbriscroll-ctrl-scroll-touch .bdbriscroll-slider,.bdbriscroll-ctrl-scroll-hover .bdbriscroll-slider{background:#b8b8b8;border-right:1px solid #afafaf;border-bottom:1px solid #afafaf}\n",
      ".s_ipt::-webkit-input-placeholder{padding-left:3px;color:#aaa;font-size:13px}\n",
      ".s_ipt::-moz-placeholder{padding-left:3px;color:#aaa;font-size:13px}\n",
      ".s_ipt:-ms-input-placeholder{padding-left:3px;color:#aaa;font-size:13px}\n",
      ".s_ipt::placeholder{padding-left:3px;color:#aaa;font-size:13px}\n",
      ".kw-placeholder{position:absolute;top:0;left:0;color:#aaa;font-size:13px;height:35px;line-height:35px;padding-left:10px;max-width:360px;z-index:99;pointer-events:none}\n",
      ".kw-placeholder.placeholders-hidden{visibility:hidden}</style>\n",
      "\n",
      "<!--[if lte IE 8]>\n",
      "<style index=\"index\" data-compress=\"strip\">\n",
      ".s_form{top:260px}\n",
      "</style>\n",
      "<![endif]-->\n",
      "<!--[if IE 8]>\n",
      "<style index=\"index\" data-compress=\"strip\">\n",
      "#u1 a.mnav,#u1 a.mnav:visited,#u1 a.lb,#u1 a.lb:visited,#u1 a.pf,#u1 a.pf:visited,#u1 a.bri,#u1 a.bri:visited{font-family:simsun;}\n",
      "</style>\n",
      "<![endif]-->\n",
      "<style data-for=\"debug\">\n",
      "#debug{display:none!important;}\n",
      "</style>\n",
      "<style data-for=\"result\" id=\"css_index_result\" type=\"text/css\">#seth{display:inline;behavior:url(#default#homepage)}\n",
      "#setf{display:inline}\n",
      "#sekj{margin-left:14px}\n",
      "#st,#sekj{display:none}\n",
      ".s_ipt_wr{border:1px solid #b6b6b6;border-color:#7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;background:#fff;display:inline-block;vertical-align:top;width:539px;margin-right:0;border-right-width:0;border-color:#b8b8b8 transparent #ccc #b8b8b8;overflow:hidden}\n",
      ".wrapper_s .s_ipt_wr{width:439px}\n",
      ".wrapper_s .s_ipt{width:434px}\n",
      ".wrapper_s .s_ipt_tip{width:434px}\n",
      ".s_ipt_wr:hover,.s_ipt_wr.ipthover{border-color:#999 transparent #b3b3b3 #999}\n",
      ".s_ipt_wr.iptfocus{border-color:#4791ff transparent #4791ff #4791ff}\n",
      ".s_ipt_tip{color:#aaa;position:absolute;z-index:-10;font:16px/22px arial;height:32px;line-height:32px;padding-left:7px;overflow:hidden;width:526px}\n",
      ".s_ipt{width:526px;height:22px;font:16px/18px arial;line-height:22px;margin:6px 0 0 7px;padding:0;background:transparent;border:0;outline:0;-webkit-appearance:none}\n",
      "#kw{position:relative}\n",
      "#u .username i{background-position:-408px -144px}\n",
      ".bdpfmenu,.usermenu{border:1px solid #d1d1d1;position:absolute;width:105px;top:36px;z-index:302;box-shadow:1px 1px 5px #d1d1d1;-webkit-box-shadow:1px 1px 5px #d1d1d1;-moz-box-shadow:1px 1px 5px #d1d1d1;-o-box-shadow:1px 1px 5px #d1d1d1}\n",
      ".bdpfmenu{font-size:12px;background-color:#fff}\n",
      ".bdpfmenu a,.usermenu a{display:block;text-align:left;margin:0!important;padding:0 9px;line-height:26px;text-decoration:none}\n",
      ".briiconsbg{background-repeat:no-repeat;background-size:300px 18px;background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_0c37e9b.png);background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_809ae65.gif)\\9}\n",
      "#u{z-index:301;position:absolute;right:0;top:0;margin:21px 9px 5px 0;padding:0}\n",
      ".wrapper_s #u{margin-right:3px}\n",
      "#u a{text-decoration:underline;color:#333;margin:0 7px}\n",
      ".wrapper_s #u a{margin-right:0 6px}\n",
      "#u div a{text-decoration:none}\n",
      "#u a:hover{text-decoration:underline}\n",
      "#u .back_org{color:#666;float:left;display:inline-block;height:24px;line-height:24px}\n",
      "#u .bri{display:inline-block;width:24px;height:24px;float:left;line-height:24px;color:transparent;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_0c37e9b.png) no-repeat 4px 3px;background-size:300px 18px;background-image:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/home/img/icons_809ae65.gif)\\9;overflow:hidden}\n",
      "#u .bri:hover,#u .bri.brihover{background-position:-18px 3px}\n",
      "#mCon #imeSIcon{background-position:-408px -144px;margin-left:0}\n",
      "#mCon span{color:#333}\n",
      ".bdpfmenu a:link,.bdpfmenu a:visited,#u .usermenu a:link,#u .usermenu a:visited{background:#fff;color:#333}\n",
      ".bdpfmenu a:hover,.bdpfmenu a:active,#u .usermenu a:hover,#u .usermenu a:active{background:#38f;text-decoration:none;color:#fff}\n",
      ".bdpfmenu{width:70px}\n",
      ".usermenu{width:68px;right:8px}\n",
      "#wrapper .bdnuarrow{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;top:-10px;left:50%;margin-left:-5px}\n",
      "#wrapper .bdnuarrow em,#wrapper .bdnuarrow i{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;border:5px solid transparent;border-style:dashed dashed solid}\n",
      "#wrapper .bdnuarrow em{border-bottom-color:#d8d8d8;top:-1px}\n",
      "#wrapper .bdnuarrow i{border-bottom-color:#fff;top:0}\n",
      "#prefpanel{background:#fafafa;display:none;opacity:0;position:fixed;_position:absolute;top:-359px;z-index:500;width:100%;min-width:960px;border-bottom:1px solid #ebebeb}\n",
      "#prefpanel form{_width:850px}\n",
      "#kw_tip{cursor:default;display:none;margin-top:1px}\n",
      "#bds-message-wrapper{top:43px}\n",
      ".quickdelete-wrap{position:relative}\n",
      ".quickdelete-wrap input{width:500px}\n",
      ".wrapper_l .quickdelete-wrap input{width:500px}\n",
      ".wrapper_s .quickdelete-wrap input{width:402px}\n",
      "input::-ms-clear{display:none}\n",
      ".quickdelete{width:32px;height:32px;background:url(https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/img/quickdelete_33e3eb8.png) no-repeat;background-position:10px 10px;position:absolute;display:block}\n",
      ".quickdelete:hover{background-position:10px -24px}\n",
      "#lh a{margin-left:25px}\n",
      ".bdbriwrapper-tuiguang{display:none!important}</style>\n",
      "<!--[if IE 8]>\n",
      "<style index=\"index\" data-compress=\"strip\">\n",
      ".s_ipt{background-color:#FFF;}\n",
      "</style>\n",
      "<![endif]-->\n",
      "\n",
      "    \n",
      "<script data-compress=\"strip\">\r\n",
      "function h(obj){\r\n",
      "    obj.style.behavior='url(#default#homepage)';\r\n",
      "\tvar a = obj.setHomePage('//www.baidu.com/');\r\n",
      "}\r\n",
      "</script>\n",
      "\n",
      "<noscript>\n",
      "    <meta http-equiv=\"refresh\" content=\"0; url=/baidu.html?from=noscript\"/>\n",
      "</noscript>\n",
      "\n",
      "    <script>window._ASYNC_START=new Date().getTime();</script>\n",
      "</head>\n",
      "\n",
      "<body link=\"#0000cc\">\n",
      "\t<script>\n",
      "\tif (/Chrome\\/37.0.2062.94/i.test(navigator.userAgent) && (/(windows 7)|(windows nt 6.1)/i.test(navigator.userAgent))) {\n",
      "\t\tvar _chrome_37_fix = document.createElement(\"style\");\n",
      "\t\t_chrome_37_fix.type=\"text/css\";\n",
      "\t\t_chrome_37_fix.setAttribute(\"data-for\",\"result\");\n",
      "\t\t_chrome_37_fix.innerHTML = \".t,.f16,#kw,.s_ipt,.c-title,.c-title-size,.to_zhidao,.to_tieba,.to_zhidao_bottom{font-size:15px;} .ec-hospital-info-main h2,.ad-widget-gx_sck-ylzx-doctor-info h2,.ec-card-main h2,.ad-widget-h1 h2,.ad-widget-title h2,.ad-widget-small-head h2,.ad-widget-small-head h2 a,.ad-widget-header .ec-figcaption h2{font-size: 15px !important;}\";\n",
      "\t\tdocument.getElementsByTagName(\"head\")[0].appendChild(_chrome_37_fix);\n",
      "\t}\n",
      "\t</script>\n",
      "    <div id=\"wrapper\" style=\"display:none;\">\n",
      "        \n",
      "\n",
      "\n",
      "        \n",
      "\n",
      "\n",
      "<script>if(window.bds&&bds.util&&bds.util.setContainerWidth){bds.util.setContainerWidth();}</script><div id=\"head\"><div class=\"head_wrapper\"><div class=\"s_form\"><div class=\"s_form_wrapper\"><style>.index-logo-srcnew {display: none;}@media (-webkit-min-device-pixel-ratio: 2),(min--moz-device-pixel-ratio: 2),(-o-min-device-pixel-ratio: 2),(min-device-pixel-ratio: 2){.index-logo-src {display: none;}.index-logo-srcnew {display: inline;}}</style><div id=\"lg\"><img hidefocus=\"true\" class='index-logo-src' src=\"//www.baidu.com/img/bd_logo1.png\" width=\"270\" height=\"129\" usemap=\"#mp\"><img hidefocus=\"true\" class='index-logo-srcnew' src=\"//www.baidu.com/img/bd_logo1.png?qua=high\" width=\"270\" height=\"129\" usemap=\"#mp\"><map name=\"mp\"><area style=\"outline:none;\" hidefocus=\"true\" shape=\"rect\" coords=\"0,0,270,129\" href=\"//www.baidu.com/s?wd=%E4%BB%8A%E6%97%A5%E6%96%B0%E9%B2%9C%E4%BA%8B&tn=SE_PclogoS_8whnvm25&sa=ire_dl_gh_logo&rsv_dl=igh_logo_pcs\" onmousedown=\"return ns_c({fm: 'tab', tab: 'felogo', rsv_platform: 'wwwhome' })\" target=\"_blank\" title=\"点击一下，了解更多\"onmousedown=\"return ns_c({'fm':'behs','tab':'bdlogo'})\"></map></div><a href=\"/\" id=\"result_logo\" onmousedown=\"return c({'fm':'tab','tab':'logo'})\"><img class='index-logo-src' src=\"//www.baidu.com/img/baidu_jgylogo3.gif\" alt=\"到百度首页\" title=\"到百度首页\"><img class='index-logo-srcnew' src=\"//www.baidu.com/img/baidu_jgylogo3.gif\" alt=\"到百度首页\" title=\"到百度首页\"></a><form id=\"form\" name=\"f\" action=\"/s\" class=\"fm\"><input type=\"hidden\" name=\"ie\" value=\"utf-8\"><input type=\"hidden\" name=\"f\" value=\"8\"><input type=\"hidden\" name=\"rsv_bp\" value=\"1\"><input type=\"hidden\" name=\"rsv_idx\" value=\"1\"><input type=hidden name=ch value=\"\"><input type=hidden name=tn value=\"baidu\"><input type=hidden name=bar value=\"\"><span class=\"bg s_ipt_wr\"><input id=\"kw\" name=\"wd\" class=\"s_ipt\" value=\"\" maxlength=\"255\" autocomplete=\"off\"></span><span class=\"bg s_btn_wr\"><input type=\"submit\" id=\"su\" value=\"百度一下\" class=\"bg s_btn\"></span><span class=\"tools\"><span id=\"mHolder\"><div id=\"mCon\"><span>输入法</span></div><ul id=\"mMenu\"><li><a href=\"javascript:;\" name=\"ime_hw\">手写</a></li><li><a href=\"javascript:;\" name=\"ime_py\">拼音</a></li><li class=\"ln\"></li><li><a href=\"javascript:;\" name=\"ime_cl\">关闭</a></li></ul></span></span><input type=\"hidden\" name=\"rn\" value=\"\"><input type=\"hidden\" name=\"oq\" value=\"\"><input type=\"hidden\" name=\"rsv_pq\" value=\"bf1ce2760000da73\"><input type=\"hidden\" name=\"rsv_t\" value=\"4c28mkHr53JhN0HCARerGs3iOzGwjPzC65AxiPyOtiodNUj/+jN/F7Dcobw\"><input type=\"hidden\" name=\"rqlang\" value=\"cn\"></form><div id=\"m\"></div></div></div><div id=\"u\"><a class=\"toindex\" href=\"/\">百度首页</a><a href=\"javascript:;\" name=\"tj_settingicon\" class=\"pf\">设置<i class=\"c-icon c-icon-triangle-down\"></i></a><a href=\"https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F&sms=5\" name=\"tj_login\" class=\"lb\" onclick=\"return false;\">登录</a></div><div id=\"u1\"><a href=\"http://news.baidu.com\" name=\"tj_trnews\" class=\"mnav\">新闻</a><a href=\"https://www.hao123.com\" name=\"tj_trhao123\" class=\"mnav\">hao123</a><a href=\"http://map.baidu.com\" name=\"tj_trmap\" class=\"mnav\">地图</a><a href=\"http://v.baidu.com\" name=\"tj_trvideo\" class=\"mnav\">视频</a><a href=\"http://tieba.baidu.com\" name=\"tj_trtieba\" class=\"mnav\">贴吧</a><a href=\"http://xueshu.baidu.com\" name=\"tj_trxueshu\" class=\"mnav\">学术</a><a href=\"https://passport.baidu.com/v2/?login&tpl=mn&u=http%3A%2F%2Fwww.baidu.com%2F&sms=5\" name=\"tj_login\" class=\"lb\" onclick=\"return false;\">登录</a><a href=\"http://www.baidu.com/gaoji/preferences.html\" name=\"tj_settingicon\" class=\"pf\">设置</a><a href=\"http://www.baidu.com/more/\" name=\"tj_briicon\" class=\"bri\" style=\"display: block;\">更多产品</a></div></div></div>\n",
      "\n",
      "\n",
      "\n",
      "<div class=\"s_tab\" id=\"s_tab\">\n",
      "<div class=\"s_tab_inner\">\n",
      "    <b>网页</b>\n",
      "    <a href=\"//www.baidu.com/s?rtt=1&bsst=1&cl=2&tn=news&word=\" wdfield=\"word\"  onmousedown=\"return c({'fm':'tab','tab':'news'})\" sync=\"true\">资讯</a>\n",
      "    <a href=\"http://tieba.baidu.com/f?kw=&fr=wwwt\" wdfield=\"kw\"  onmousedown=\"return c({'fm':'tab','tab':'tieba'})\">贴吧</a>\n",
      "    <a href=\"http://zhidao.baidu.com/q?ct=17&pn=0&tn=ikaslist&rn=10&word=&fr=wwwt\" wdfield=\"word\"  onmousedown=\"return c({'fm':'tab','tab':'zhidao'})\">知道</a>\n",
      "    <a href=\"http://music.taihe.com/search?fr=ps&ie=utf-8&key=\" wdfield=\"key\"  onmousedown=\"return c({'fm':'tab','tab':'music'})\">音乐</a>\n",
      "    <a href=\"http://image.baidu.com/search/index?tn=baiduimage&ps=1&ct=201326592&lm=-1&cl=2&nc=1&ie=utf-8&word=\" wdfield=\"word\"  onmousedown=\"return c({'fm':'tab','tab':'pic'})\">图片</a>\n",
      "    <a href=\"http://v.baidu.com/v?ct=301989888&rn=20&pn=0&db=0&s=25&ie=utf-8&word=\" wdfield=\"word\"   onmousedown=\"return c({'fm':'tab','tab':'video'})\">视频</a>\n",
      "    <a href=\"http://map.baidu.com/m?word=&fr=ps01000\" wdfield=\"word\"  onmousedown=\"return c({'fm':'tab','tab':'map'})\">地图</a>\n",
      "    <a href=\"http://wenku.baidu.com/search?word=&lm=0&od=0&ie=utf-8\" wdfield=\"word\"  onmousedown=\"return c({'fm':'tab','tab':'wenku'})\">文库</a>\n",
      "    <a href=\"//www.baidu.com/more/\"  onmousedown=\"return c({'fm':'tab','tab':'more'})\">更多»</a>\n",
      "</div>\n",
      "</div>\n",
      "\n",
      "        \n",
      "\r\n",
      "<div class=\"qrcodeCon\">\r\n",
      "\t<div id=\"qrcode\">\r\n",
      "\t\t<div class=\"qrcode-item qrcode-item-1\">\r\n",
      "\t\t\t<div class=\"qrcode-img\"></div>\r\n",
      "\t\t\t<div class=\"qrcode-text\">\r\n",
      "\t\t\t\t\t<p><b>百度</b></p>\r\n",
      "\t\t\t</div>\r\n",
      "\t\t</div>\r\n",
      "\t</div>\r\n",
      "</div>\r\n",
      "<div id=\"ftCon\">\r\n",
      "\r\n",
      "<div class=\"ftCon-Wrapper\"><div id=\"ftConw\"><p id=\"lh\"><a id=\"setf\" href=\"//www.baidu.com/cache/sethelp/help.html\" onmousedown=\"return ns_c({'fm':'behs','tab':'favorites','pos':0})\" target=\"_blank\">把百度设为主页</a><a onmousedown=\"return ns_c({'fm':'behs','tab':'tj_about'})\" href=\"http://home.baidu.com\">关于百度</a><a onmousedown=\"return ns_c({'fm':'behs','tab':'tj_about_en'})\" href=\"http://ir.baidu.com\">About&nbsp;&nbsp;Baidu</a><a onmousedown=\"return ns_c({'fm':'behs','tab':'tj_tuiguang'})\" href=\"http://e.baidu.com/?refer=888\">百度推广</a></p><p id=\"cp\">&copy;2019&nbsp;Baidu&nbsp;<a href=\"http://www.baidu.com/duty/\" onmousedown=\"return ns_c({'fm':'behs','tab':'tj_duty'})\">使用百度前必读</a>&nbsp;<a href=\"http://jianyi.baidu.com/\" class=\"cp-feedback\" onmousedown=\"return ns_c({'fm':'behs','tab':'tj_homefb'})\">意见反馈</a>&nbsp;京ICP证030173号&nbsp;<i class=\"c-icon-icrlogo\"></i>&nbsp;<a id=\"jgwab\"  target=\"_blank\" href=\"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11000002000001\">京公网安备11000002000001号</a>&nbsp;<i class=\"c-icon-jgwablogo\"></i></p></div></div></div>\n",
      "        <div id=\"wrapper_wrapper\">\n",
      "        </div>\n",
      "    </div>\n",
      "    <div class=\"c-tips-container\" id=\"c-tips-container\"></div>\n",
      "    \n",
      "    <script>\n",
      "        window.__async_strategy=2;\n",
      "        //window.__switch_add_mask=false;\n",
      "    </script>\n",
      "    \n",
      "    \n",
      "<script>\n",
      "var bds={\n",
      "    se:{},\n",
      "    su:{\n",
      "        urdata:[],\n",
      "                urSendClick:function(){}\n",
      "    },\n",
      "    util:{},\n",
      "    use:{},\n",
      "    comm : {\n",
      "        domain:\"http://www.baidu.com\",\n",
      "        ubsurl : \"https://sp0.baidu.com/5bU_dTmfKgQFm2e88IuM_a/w.gif\",\n",
      "        tn:\"baidu\",\n",
      "        queryEnc:\"\",\n",
      "        queryId:\"\",\n",
      "        inter:\"\",\n",
      "        templateName:\"\",\n",
      "        sugHost : \"https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su\",\n",
      "        query : \"\",\n",
      "        dpquery: \"\",\n",
      "        qid : \"bf1ce2760000da73\",\n",
      "        cid : \"0\",\n",
      "        sid : \"1990_1457_21102_28328_26350_28413_20719\",\n",
      "        indexSid : \"1990_1457_21102_28328_26350_28413_20719\",\n",
      "        stoken : \"\",\n",
      "        serverTime : \"1548218789\",\n",
      "        user : \"\",\n",
      "        username : \"\",\n",
      "        userid : \"0\",\n",
      "        loginAction : [],\n",
      "        useFavo : \"\",\n",
      "        pinyin : \"\",\n",
      "        favoOn : \"\",\n",
      "        cookie : null,\n",
      "        userAgent : \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36\",\n",
      "                curResultNum:\"0\",\n",
      "        rightResultExist:false,\n",
      "        protectNum:0,\n",
      "        zxlNum:0,\n",
      "        pageNum:1,\n",
      "        pageSize:10,\n",
      "        newindex:0,\n",
      "        async:2,\n",
      "        maxPreloadThread:5,\n",
      "        maxPreloadTimes:10,\n",
      "        preloadMouseMoveDistance:5,\n",
      "        switchAddMask:false,\n",
      "        isDebug:false,\n",
      "        ishome : 1,\n",
      "        flagTranslateResult:0,\n",
      "        globalLogFlag:0\n",
      "\t,encTn:'4c28mkHr53JhN0HCARerGs3iOzGwjPzC65AxiPyOtiodNUj/+jN/F7Dcobw'    }\n",
      "};\n",
      "\n",
      "\n",
      "\n",
      "    \n",
      "\n",
      "\n",
      "//防止从结果页打开的页面中通过opener.xxx来影响百度页面\n",
      "\n",
      "\n",
      "var name,navigate,al_arr=[];\n",
      "var selfOpen = window.open;eval(\"var open = selfOpen;\");\n",
      "var isIE=navigator.userAgent.indexOf(\"MSIE\")!=-1&&!window.opera;\n",
      "var E = bds.ecom= {};\n",
      "\n",
      "bds.se.mon = {'loadedItems':[],'load':function(){},'srvt':-1};\n",
      "\n",
      "try {\n",
      "    bds.se.mon.srvt = parseInt(document.cookie.match(new RegExp(\"(^| )BDSVRTM=([^;]*)(;|$)\"))[2]);\n",
      "    document.cookie=\"BDSVRTM=;expires=Sat, 01 Jan 2000 00:00:00 GMT\";\n",
      "}catch(e){}\n",
      "\n",
      "//兼容之前一些变量\n",
      "var\n",
      "bdUser        = bds.comm.user?bds.comm.user:null,\n",
      "bdQuery       = bds.comm.query,\n",
      "bdUseFavo     = bds.comm.useFavo,\n",
      "bdFavoOn      = bds.comm.favoOn,\n",
      "bdCid         = bds.comm.cid,\n",
      "bdSid         = bds.comm.sid,\n",
      "bdServerTime  = bds.comm.serverTime,\n",
      "bdQid         = bds.comm.queryId,\n",
      "bdstoken      = bds.comm.stoken,\n",
      "login_success = [];\n",
      "\n",
      "\n",
      "</script>\n",
      "<script>\n",
      "/* https域名转换工具 */\n",
      "bds.util.domain = (function(){\n",
      "\t    \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t            \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tvar list = {\n",
      "        \"graph.baidu.com\": \"https://sp0.baidu.com/-aYHfD0a2gU2pMbgoY3K\",\n",
      "\t\t\"p.qiao.baidu.com\":\"https://sp0.baidu.com/5PoXdTebKgQFm2e88IuM_a\",\n",
      "\t\t\"vse.baidu.com\":\"https://sp3.baidu.com/6qUDsjip0QIZ8tyhnq\",\n",
      "\t\t\"hdpreload.baidu.com\":\"https://sp3.baidu.com/7LAWfjuc_wUI8t7jm9iCKT-xh_\",\n",
      "\t\t\"lcr.open.baidu.com\":\"https://sp2.baidu.com/8LUYsjW91Qh3otqbppnN2DJv\",\n",
      "\t\t\"kankan.baidu.com\":\"https://sp3.baidu.com/7bM1dzeaKgQFm2e88IuM_a\",\n",
      "\t\t\"xapp.baidu.com\":\"https://sp2.baidu.com/yLMWfHSm2Q5IlBGlnYG\",\n",
      "\t\t\"dr.dh.baidu.com\":\"https://sp0.baidu.com/-KZ1aD0a2gU2pMbgoY3K\",\n",
      "\t\t\"xiaodu.baidu.com\":\"https://sp0.baidu.com/yLsHczq6KgQFm2e88IuM_a\",\n",
      "\t\t\"sensearch.baidu.com\":\"https://sp1.baidu.com/5b11fzupBgM18t7jm9iCKT-xh_\",\n",
      "\t\t\"s1.bdstatic.com\":\"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K\",\n",
      "\t\t\"olime.baidu.com\":\"https://sp0.baidu.com/8bg4cTva2gU2pMbgoY3K\",\n",
      "\t\t\"app.baidu.com\":\"https://sp2.baidu.com/9_QWsjip0QIZ8tyhnq\",\n",
      "\t\t\"i.baidu.com\":\"https://sp0.baidu.com/74oIbT3kAMgDnd_\",\n",
      "\t\t\"c.baidu.com\":\"https://sp0.baidu.com/9foIbT3kAMgDnd_\",\n",
      "\t\t\"sclick.baidu.com\":\"https://sp0.baidu.com/5bU_dTmfKgQFm2e88IuM_a\",\n",
      "\t\t\"nsclick.baidu.com\":\"https://sp1.baidu.com/8qUJcD3n0sgCo2Kml5_Y_D3\",\n",
      "\t\t\"sestat.baidu.com\":\"https://sp1.baidu.com/5b1ZeDe5KgQFm2e88IuM_a\",\n",
      "\t\t\"eclick.baidu.com\":\"https://sp3.baidu.com/-0U_dTmfKgQFm2e88IuM_a\",\n",
      "\t\t\"api.map.baidu.com\":\"https://sp2.baidu.com/9_Q4sjOpB1gCo2Kml5_Y_D3\",\n",
      "\t\t\"ecma.bdimg.com\":\"https://ss1.bdstatic.com/-0U0bXSm1A5BphGlnYG\",\n",
      "\t\t\"ecmb.bdimg.com\":\"https://ss0.bdstatic.com/-0U0bnSm1A5BphGlnYG\",\n",
      "        \"t1.baidu.com\":\"https://ss0.baidu.com/6ON1bjeh1BF3odCf\",\n",
      "        \"t2.baidu.com\":\"https://ss1.baidu.com/6OZ1bjeh1BF3odCf\",\n",
      "        \"t3.baidu.com\":\"https://ss2.baidu.com/6OV1bjeh1BF3odCf\",\n",
      "\t\t\"t10.baidu.com\":\"https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq\",\n",
      "\t\t\"t11.baidu.com\":\"https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq\",\n",
      "\t\t\"t12.baidu.com\":\"https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq\",\n",
      "\t\t\"i7.baidu.com\":\"https://ss0.baidu.com/73F1bjeh1BF3odCf\",\n",
      "\t\t\"i8.baidu.com\":\"https://ss0.baidu.com/73x1bjeh1BF3odCf\",\n",
      "\t\t\"i9.baidu.com\":\"https://ss0.baidu.com/73t1bjeh1BF3odCf\",\n",
      "\t\t\"b1.bdstatic.com\":\"https://ss0.bdstatic.com/9uN1bjq8AAUYm2zgoY3K\",\n",
      "\t\t\"ss.bdimg.com\":\"https://ss1.bdstatic.com/5aV1bjqh_Q23odCf\",\n",
      "\t\t\"opendata.baidu.com\":\"https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv\",\n",
      "\t\t\"api.open.baidu.com\":\"https://sp0.baidu.com/9_Q4sjW91Qh3otqbppnN2DJv\",\n",
      "\t\t\"tag.baidu.com\":\"https://sp1.baidu.com/6LMFsjip0QIZ8tyhnq\",\n",
      "\t\t\"f3.baidu.com\":\"https://sp2.baidu.com/-uV1bjeh1BF3odCf\",\n",
      "\t\t\"s.share.baidu.com\":\"https://sp0.baidu.com/5foZdDe71MgCo2Kml5_Y_D3\",\t\n",
      "\t\t\"bdimg.share.baidu.com\":\"https://ss1.baidu.com/9rA4cT8aBw9FktbgoI7O1ygwehsv\",\n",
      "        \"1.su.bdimg.com\":\"https://ss0.bdstatic.com/k4oZeXSm1A5BphGlnYG\",\n",
      "        \"2.su.bdimg.com\":\"https://ss1.bdstatic.com/kvoZeXSm1A5BphGlnYG\",\n",
      "        \"3.su.bdimg.com\":\"https://ss2.bdstatic.com/kfoZeXSm1A5BphGlnYG\",\n",
      "        \"4.su.bdimg.com\":\"https://ss3.bdstatic.com/lPoZeXSm1A5BphGlnYG\",\n",
      "        \"5.su.bdimg.com\":\"https://ss0.bdstatic.com/l4oZeXSm1A5BphGlnYG\",\n",
      "        \"6.su.bdimg.com\":\"https://ss1.bdstatic.com/lvoZeXSm1A5BphGlnYG\",\n",
      "        \"7.su.bdimg.com\":\"https://ss2.bdstatic.com/lfoZeXSm1A5BphGlnYG\",\n",
      "        \"8.su.bdimg.com\":\"https://ss3.bdstatic.com/iPoZeXSm1A5BphGlnYG\"\n",
      "\t};\n",
      "\r\n",
      "\n",
      "\tvar get = function(url) {\n",
      "\t\tif(location.protocol === \"http\") {\n",
      "\t\t\treturn url;\n",
      "\t\t}\n",
      "\t\tvar reg = /^(http[s]?:\\/\\/)?([^\\/]+)(.*)/,\n",
      "\t\tmatches = url.match(reg);\n",
      "\t\t/* 判断传入参数是域名还是地址，分别做处理 */\n",
      "\t\turl = list.hasOwnProperty(matches[2])&&(list[matches[2]] + matches[3]) || url;\n",
      "\t\treturn url;\n",
      "\t},\n",
      "\tset = function(kdomain,vdomain) {\n",
      "\t\tlist[kdomain] = vdomain;\n",
      "\t};\n",
      "\treturn {\n",
      "\t\tget : get,\n",
      "\t\tset : set\n",
      "\t}\n",
      "})();\n",
      "</script>\n",
      "<script>\n",
      "//让用户更快看到首页\n",
      "if(!location.hash.match(/[^a-zA-Z0-9]wd=/)){\n",
      "    document.getElementById(\"wrapper\").style.display='block';\n",
      "    setTimeout(function(){\n",
      "        try{\n",
      "            var kw=document.getElementById(\"kw\");\n",
      "            kw.focus();\n",
      "\t\t\tkw.parentNode.className=\"bg s_ipt_wr iptfocus quickdelete-wrap\";\n",
      "        }catch(e){}\n",
      "    },0);\n",
      "}\n",
      "\n",
      "</script>\n",
      "<script type=\"text/javascript\" src=\"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/jquery/jquery-1.10.2.min_65682a2.js\"></script>\n",
      "\n",
      "\n",
      "\n",
      "\n",
      "<script>\n",
      "(function(){\n",
      "\n",
      "    var result_common_css=\"<style data-for=\\\"result\\\" id=\\\"css_result\\\" type=\\\"text\\/css\\\">body{color:#333;background:#fff;padding:6px 0 0;margin:0;position:relative;min-width:900px}body,th,td,.p1,.p2{font-family:arial}p,form,ol,ul,li,dl,dt,dd,h3{margin:0;padding:0;list-style:none}input{padding-top:0;padding-bottom:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}table,img{border:0}td{font-size:9pt;line-height:18px}em{font-style:normal;color:#c00}a em{text-decoration:underline}cite{font-style:normal;color:green}.m,a.m{color:#666}a.m:visited{color:#606}.g,a.g{color:green}.c{color:#77c}.f14{font-size:14px}.f10{font-size:10.5pt}.f16{font-size:16px}.f13{font-size:13px}.bg{background-image:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/icons_5859e57.png);_background-image:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/icons_d5b04cc.gif);background-repeat:no-repeat}#u,#head,#tool,#search,#foot{font-size:12px}.logo{width:117px;height:38px;cursor:pointer}.p1{line-height:120%;margin-left:-12pt}.p2{width:100%;line-height:120%;margin-left:-12pt}#wrapper{_zoom:1}#container{word-break:break-all;word-wrap:break-word;position:relative}.container_s{width:1002px}.container_l{width:1222px}#content_left{width:636px;float:left;padding-left:35px}#content_right{border-left:1px solid #e1e1e1;float:right}.container_s #content_right{width:271px}.container_l #content_right{width:434px}.content_none{padding-left:35px}#u{color:#999;white-space:nowrap;position:absolute;right:10px;top:4px;z-index:299}#u a{color:#00c;margin:0 5px}#u .reg{margin:0}#u .last{margin-right:0}#u .un{font-weight:700;margin-right:5px}#u ul{width:100%;background:#fff;border:1px solid #9b9b9b}#u li{height:25px}#u li a{width:100%;height:25px;line-height:25px;display:block;text-align:left;text-decoration:none;text-indent:6px;margin:0;filter:none\\\\9}#u li a:hover{background:#ebebeb}#u li.nl{border-top:1px solid #ebebeb}#user{display:inline-block}#user_center{position:relative;display:inline-block}#user_center .user_center_btn{margin-right:5px}.userMenu{width:64px;position:absolute;right:7px;_right:2px;top:15px;top:14px\\\\9;*top:15px;padding-top:4px;display:none;*background:#fff}#head{padding-left:35px;margin-bottom:20px;width:900px}.fm{clear:both;position:relative;z-index:297}.nv a,.nv b,.btn,#page,#more{font-size:14px}.s_nav{height:45px}.s_nav .s_logo{margin-right:20px;float:left}.s_nav .s_logo img{border:0;display:block}.s_tab{line-height:18px;padding:20px 0 0;float:left}.s_nav a{color:#00c;font-size:14px}.s_nav b{font-size:14px}.s_ipt_wr{width:536px;height:30px;display:inline-block;margin-right:5px;background-position:0 -96px;border:1px solid #b6b6b6;border-color:#7b7b7b #b6b6b6 #b6b6b6 #7b7b7b;vertical-align:top}.s_ipt{width:523px;height:22px;font:16px\\/18px arial;line-height:22px;margin:5px 0 0 7px;padding:0;background:#fff;border:0;outline:0;-webkit-appearance:none}.s_btn{width:95px;height:32px;padding-top:2px\\\\9;font-size:14px;padding:0;background-color:#ddd;background-position:0 -48px;border:0;cursor:pointer}.s_btn_h{background-position:-240px -48px}.s_btn_wr{width:97px;height:34px;display:inline-block;background-position:-120px -48px;*position:relative;z-index:0;vertical-align:top}.sethf{padding:0;margin:0;font-size:14px}.set_h{display:none;behavior:url(#default#homepage)}.set_f{display:none}.shouji{margin-left:19px}.shouji a{text-decoration:none}#head .bdsug{top:33px}#search form{position:relative}#search form .bdsug{bottom:33px}.bdsug{display:none;position:absolute;z-index:1;width:538px;background:#fff;border:1px solid #ccc;_overflow:hidden;box-shadow:1px 1px 3px #ededed;-webkit-box-shadow:1px 1px 3px #ededed;-moz-box-shadow:1px 1px 3px #ededed;-o-box-shadow:1px 1px 3px #ededed}.bdsug.bdsugbg ul{background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/home\\/img\\/sugbg_1762fe7.png) 100% 100% no-repeat;background-size:100px 110px;background-image:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/home\\/img\\/sugbg_90fc9cf.gif)\\\\9}.bdsug li{width:522px;color:#000;font:14px arial;line-height:22px;padding:0 8px;position:relative;cursor:default}.bdsug li.bdsug-s{background:#f0f0f0}.bdsug-store span,.bdsug-store b{color:#7A77C8}.bdsug-store-del{font-size:12px;color:#666;text-decoration:underline;position:absolute;right:8px;top:0;cursor:pointer;display:none}.bdsug-s .bdsug-store-del{display:inline-block}.bdsug-ala{display:inline-block;border-bottom:1px solid #e6e6e6}.bdsug-ala h3{line-height:14px;background:url(\\/\\/www.baidu.com\\/img\\/sug_bd.png) no-repeat left center;margin:8px 0 5px;font-size:12px;font-weight:400;color:#7B7B7B;padding-left:20px}.bdsug-ala p{font-size:14px;font-weight:700;padding-left:20px}.bdsug .bdsug-direct{width:auto;padding:0;border-bottom:1px solid #f1f1f1}.bdsug .bdsug-direct p{color:#00c;font-weight:700;line-height:34px;padding:0 8px;cursor:pointer;white-space:nowrap;overflow:hidden}.bdsug .bdsug-direct p img{width:16px;height:16px;margin:7px 6px 9px 0;vertical-align:middle}.bdsug .bdsug-direct p span{margin-left:8px}.bdsug .bdsug-direct p i{font-size:12px;line-height:100%;font-style:normal;font-weight:400;color:#fff;background-color:#2b99ff;display:inline;text-align:center;padding:1px 5px;*padding:2px 5px 0;margin-left:8px;overflow:hidden}.bdsug .bdsug-pcDirect{color:#000;font-size:14px;line-height:30px;height:30px;background-color:#f8f8f8}.bdsug .bdsug-pc-direct-tip{position:absolute;right:15px;top:8px;width:55px;height:15px;display:block;background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/pc_direct_42d6311.png) no-repeat 0 0}.bdsug li.bdsug-pcDirect-s{background-color:#f0f0f0}.bdsug .bdsug-pcDirect-is{color:#000;font-size:14px;line-height:22px;background-color:#f8f8f8}.bdsug .bdsug-pc-direct-tip-is{position:absolute;right:15px;top:3px;width:55px;height:15px;display:block;background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/pc_direct_42d6311.png) no-repeat 0 0}.bdsug li.bdsug-pcDirect-is-s{background-color:#f0f0f0}.bdsug .bdsug-pcDirect-s .bdsug-pc-direct-tip,.bdsug .bdsug-pcDirect-is-s .bdsug-pc-direct-tip-is{background-position:0 -15px}.bdsug .bdsug-newicon{color:#929292;opacity:.7;font-size:12px;display:inline-block;line-height:22px;letter-spacing:2px}.bdsug .bdsug-s .bdsug-newicon{opacity:1}.bdsug .bdsug-newicon i{letter-spacing:0;font-style:normal}.bdsug .bdsug-feedback-wrap{text-align:right;background:#fafafa;color:#666;height:25px;line-height:27px}.bdsug .bdsug-feedback{margin-right:10px;text-decoration:underline;color:#666}.toggle-underline{text-decoration:none}.toggle-underline:hover{text-decoration:underline}#tb_mr{color:#00c;cursor:pointer;position:relative;z-index:298}#tb_mr b{font-weight:400;text-decoration:underline}#tb_mr small{font-size:11px}#page{font:14px arial;white-space:nowrap;padding-left:35px}#page a,#page strong{display:inline-block;vertical-align:text-bottom;height:66px;text-align:center;line-height:34px;text-decoration:none;overflow:hidden;margin-right:9px;background:#fff}#page a{cursor:pointer}#page a:hover{background:0 0}#page .n:hover,#page a:hover .pc{background:#f2f8ff;border:1px solid #38f}#page .n{height:34px;padding:0 18px;border:1px solid #e1e2e3}#page span{display:block}#page .pc{width:34px;height:34px;border:1px solid #e1e2e3;cursor:pointer}#page .fk{width:24px;height:24px;margin-bottom:6px;margin-left:6px;cursor:pointer}#page strong .fk,#page strong .pc{cursor:auto}#page .fk .c-icon-bear-pn{top:-3px;position:relative}#page .fkd .c-icon-bear-pn{top:3px;position:relative}#page .fk_cur .c-icon-bear-p{top:-2px;position:relative}#page strong .pc{border:0;width:36px;height:36px;line-height:36px}#page .nums{display:inline-block;vertical-align:text-bottom;height:36px;line-height:36px;margin-left:10px}#rs{width:900px;background:#fff;padding:8px 0;margin:20px 0 0 15px}#rs td{width:5%}#rs th{font-size:14px;font-weight:400;line-height:19px;white-space:nowrap;text-align:left;vertical-align:top}#rs .tt{font-weight:700;padding:0 10px 0 20px}#rs_top{font-size:14px;margin-bottom:22px}#rs_top a{margin-right:18px}#container .rs{margin:30px 0 20px;padding:5px 0 15px;font-size:14px;width:540px;padding-left:121px;position:relative;background-color:#fafafa}#container .noback{background-color:#fff}#content_left .rs{margin-left:-121px}#container .rs table{width:540px}#container .rs td{width:5px}#container .rs th{font-size:14px;font-weight:400;white-space:nowrap;text-align:left;vertical-align:top;width:175px;line-height:22px}#container .rs .tt{font-weight:700;padding:0 10px 0 20px;padding:0;line-height:30px;font-size:16px}#container .rs a{margin:0;height:24px;width:173px;display:inline-block;line-height:25px;border:1px solid #ebebeb;text-align:center;vertical-align:middle;overflow:hidden;outline:0;color:#333;background-color:#fff;text-decoration:none}#container .rs a:hover{border-color:#388bff}.c-tip-con .c-tip-menu-b ul{width:100px}.c-tip-con .c-tip-menu-b ul{text-align:center}.c-tip-con .c-tip-menu-b li a{display:block;text-decoration:none;cursor:pointer;background-color:#fff;padding:3px 0;color:#666}.c-tip-con .c-tip-menu-b li a:hover{display:block;background-color:#ebebeb}#search{width:900px;padding:35px 0 16px 35px}#search .s_help{position:relative;top:10px}#foot{height:20px;line-height:20px;color:#77c;background:#e6e6e6;text-align:center}#foot span{color:#666}.site_tip{font-size:12px;margin-bottom:20px}.site_tip_icon{width:56px;height:56px;background:url(\\/\\/www.baidu.com\\/aladdin\\/img\\/tools\\/tools-3.png) -288px 0 no-repeat}.to_zhidao,.to_tieba,.to_zhidao_bottom{font-size:16px;line-height:24px;margin:20px 0 0 35px}.to_tieba .c-icon-tieba{float:left}.f{line-height:115%;*line-height:120%;font-size:100%;width:33.7em;word-break:break-all;word-wrap:break-word}.h{margin-left:8px;width:100%}.r{word-break:break-all;cursor:hand;width:238px}.t{font-weight:400;font-size:medium;margin-bottom:1px}.pl{padding-left:3px;height:8px;padding-right:2px;font-size:14px}.mo,a.mo:link,a.mo:visited{color:#666;font-size:100%;line-height:10px}.htb{margin-bottom:5px}.jc a{color:#c00}a font[size=\\\"3\\\"] font,font[size=\\\"3\\\"] a font{text-decoration:underline}div.blog,div.bbs{color:#707070;padding-top:2px;font-size:13px}.result{width:33.7em;table-layout:fixed}.result-op .f{word-wrap:normal}.nums{font-size:12px;color:#999}.tools{position:absolute;top:10px;white-space:nowrap}#mHolder{width:62px;position:relative;z-index:296;top:-18px;margin-left:9px;margin-right:-12px;display:none}#mCon{height:18px;position:absolute;top:3px;top:6px\\\\9;cursor:pointer;line-height:18px}.wrapper_l #mCon{right:7px}#mCon span{color:#00c;display:block}#mCon .hw{text-decoration:underline;cursor:pointer;display:inline-block}#mCon .pinyin{display:inline-block}#mCon .c-icon-chevron-unfold2{margin-left:5px}#mMenu{width:56px;border:1px solid #9b9b9b;position:absolute;right:7px;top:23px;display:none;background:#fff}#mMenu a{width:100%;height:100%;color:#00c;display:block;line-height:22px;text-indent:6px;text-decoration:none;filter:none\\\\9}#mMenu a:hover{background:#ebebeb}#mMenu .ln{height:1px;background:#ebebeb;overflow:hidden;font-size:1px;line-height:1px;margin-top:-1px}.op_LAMP{background:url(\\/\\/www.baidu.com\\/cache\\/global\\/img\\/aladdinIcon-1.0.gif) no-repeat 0 2px;color:#77C;display:inline-block;font-size:13px;height:12px;*height:14px;width:16px;text-decoration:none;zoom:1}.EC_mr15{margin-left:0}.pd15{padding-left:0}.map_1{width:30em;font-size:80%;line-height:145%}.map_2{width:25em;font-size:80%;line-height:145%}.favurl{background-repeat:no-repeat;background-position:0 1px;padding-left:20px}.dan_tip{font-size:12px;margin-top:4px}.dan_tip a{color:#b95b07}#more,#u ul,#mMenu,.msg_holder{box-shadow:1px 1px 2px #ccc;-moz-box-shadow:1px 1px 2px #ccc;-webkit-box-shadow:1px 1px 2px #ccc;filter:progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=135, Color=#cccccc)\\\\9}.hit_top{line-height:18px;margin:0 15px 10px 0;width:516px}.hit_top .c-icon-bear{height:18px;margin-right:4px}#rs_top_new,.hit_top_new{width:538px;font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all;margin:0 0 14px}.zhannei-si{margin:0 0 10px 121px}.zhannei-si-none{margin:10px 0 -10px 121px}.zhannei-search{margin:10px 0 0 121px;color:#999;font-size:14px}.f a font[size=\\\"3\\\"] font,.f font[size=\\\"-1\\\"] a font{text-decoration:underline}h3 a font{text-decoration:underline}.c-title{font-weight:400;font-size:16px}.c-title-size{font-size:16px}.c-abstract{font-size:13px}.c-abstract-size{font-size:13px}.c-showurl{color:green;font-size:13px}.c-showurl-color{color:green}.c-cache-color{color:#666}.c-lightblue{color:#77c}.c-highlight-color{color:#c00}.c-clearfix:after{content:\\\".\\\";display:block;height:0;clear:both;visibility:hidden}.c-clearfix{zoom:1}.c-wrap{word-break:break-all;word-wrap:break-word}.c-icons-outer{overflow:hidden;display:inline-block;vertical-align:bottom;*vertical-align:-1px;_vertical-align:bottom}.c-icons-inner{margin-left:-4px}.c-container table.result,.c-container table.result-op{width:100%}.c-container td.f{font-size:13px;line-height:1.54;width:auto}.c-container .vd_newest_main{width:auto}.c-customicon{display:inline-block;width:16px;height:16px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-tip-icon i{display:inline-block;cursor:pointer}.c-tip-con{position:absolute;z-index:1;top:22px;left:-35px;background:#fff;border:1px solid #dcdcdc;border:1px solid rgba(0,0,0,.2);-webkit-transition:opacity .218s;transition:opacity .218s;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2);padding:5px 0;display:none;font-size:12px;line-height:20px}.c-tip-arrow{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;top:-16px}.c-tip-arrow-down{top:auto;bottom:0}.c-tip-arrow em,.c-tip-arrow ins{width:0;height:0;font-size:0;line-height:0;display:block;position:absolute;border:8px solid transparent;border-style:dashed dashed solid}.c-tip-arrow em{border-bottom-color:#d8d8d8}.c-tip-arrow ins{border-bottom-color:#fff;top:2px}.c-tip-arrow-down em,.c-tip-arrow-down ins{border-style:solid dashed dashed;border-color:transparent}.c-tip-arrow-down em{border-top-color:#d8d8d8}.c-tip-arrow-down ins{border-top-color:#fff;top:-2px}.c-tip-arrow .c-tip-arrow-r{border-bottom-color:#82c9fa;top:2px}.c-tip-arrow-down .c-tip-arrow-r{border-bottom-color:transparent;top:-2px}.c-tip-arrow .c-tip-arrow-c{border-bottom-color:#fecc47;top:2px}.c-tip-arrow-down .c-tip-arrow-c{border-bottom-color:transparent;top:-2px}.c-tip-con h3{font-size:12px}.c-tip-con .c-tip-title{margin:0 10px;display:inline-block;width:239px}.c-tip-con .c-tip-info{color:#666;margin:0 10px 1px;width:239px}.c-tip-con .c-tip-cer{width:370px;color:#666;margin:0 10px 1px}.c-tip-con .c-tip-title{width:auto;_width:354px}.c-tip-con .c-tip-item-i{padding:3px 0 3px 20px;line-height:14px}.c-tip-con .c-tip-item-i .c-tip-item-icon{margin-left:-20px}.c-tip-con .c-tip-menu ul{width:74px}.c-tip-con .c-tip-menu ul{text-align:center}.c-tip-con .c-tip-menu li a{display:block;text-decoration:none;cursor:pointer;background-color:#fff;padding:3px 0;color:#0000d0}.c-tip-con .c-tip-menu li a:hover{display:block;background-color:#ebebeb}.c-tip-con .c-tip-notice{width:239px;padding:0 10px}.c-tip-con .c-tip-notice .c-tip-notice-succ{color:#4cbd37}.c-tip-con .c-tip-notice .c-tip-notice-fail{color:#f13F40}.c-tip-con .c-tip-notice .c-tip-item-succ{color:#444}.c-tip-con .c-tip-notice .c-tip-item-fail{color:#aaa}.c-tip-con .c-tip-notice .c-tip-item-fail a{color:#aaa}.c-tip-close{right:10px;position:absolute;cursor:pointer}.ecard{height:86px;overflow:hidden}.c-tools{display:inline}.c-tools-share{width:239px;padding:0 10px}.c-fanyi{display:none;width:20px;height:20px;border:solid 1px #d1d1d1;cursor:pointer;position:absolute;margin-left:516px;text-align:center;color:#333;line-height:22px;opacity:.9;background-color:#fff}.c-fanyi:hover{background-color:#39f;color:#fff;border-color:#39f;opacity:1}.c-fanyi-title,.c-fanyi-abstract{display:none}.icp_info{color:#666;margin-top:2px;font-size:13px}.icon-gw,.icon-unsafe-icon{background:#2c99ff;vertical-align:text-bottom;*vertical-align:baseline;height:16px;padding-top:0;padding-bottom:0;padding-left:6px;padding-right:6px;line-height:16px;_padding-top:2px;_height:14px;_line-height:14px;font-size:12px;font-family:simsun;margin-left:10px;overflow:hidden;display:inline-block;-moz-border-radius:1px;-webkit-border-radius:1px;border-radius:1px;color:#fff}a.icon-gw{color:#fff;background:#2196ff;text-decoration:none;cursor:pointer}a.icon-gw:hover{background:#1e87ef}a.icon-gw:active{height:15px;_height:13px;line-height:15px;_line-height:13px;padding-left:5px;background:#1c80d9;border-left:1px solid #145997;border-top:1px solid #145997}.icon-unsafe-icon{background:#e54d4b}#con-at{margin-bottom:9px;padding-left:121px;border-bottom:1px #ebebeb solid}#con-at .result-op{font-size:13px;line-height:1.52em}.wrapper_l #con-at .result-op{width:1058px}.wrapper_s #con-at .result-op{width:869px}#con-ar{margin-bottom:40px}#con-ar .result-op{margin-bottom:28px;font-size:13px;line-height:1.52em}.result_hidden{position:absolute;top:-10000px;left:-10000px}#content_left .result-op,#content_left .result{margin-bottom:14px;border-collapse:collapse}#content_left .c-border .result-op,#content_left .c-border .result{margin-bottom:25px}#content_left .c-border .result-op:last-child,#content_left .c-border .result:last-child{margin-bottom:12px}#content_left .result .f,#content_left .result-op .f{padding:0}.subLink_factory{border-collapse:collapse}.subLink_factory td{padding:0}.subLink_factory td.middle,.subLink_factory td.last{color:#666}.subLink_factory td a{text-decoration:underline}.subLink_factory td.rightTd{text-align:right}.subLink_factory_right{width:100%}.subLink_factory_left td{padding-right:26px}.subLink_factory_left td.last{padding:0}.subLink_factory_left td.first{padding-right:75px}.subLink_factory_right td{width:90px}.subLink_factory_right td.first{width:auto}.general_image_pic a{background:#fff no-repeat center center;text-decoration:none;display:block;overflow:hidden;text-align:left}.res_top_banner{height:36px;text-align:left;border-bottom:1px solid #e3e3e3;background:#f7f7f7;font-size:13px;padding-left:8px;color:#333;position:relative;z-index:302}.res_top_banner span{_zoom:1}.res_top_banner .res_top_banner_icon{background-position:0 -216px;width:18px;height:18px;margin:9px 10px 0 0}.res_top_banner .res_top_banner_icon_baiduapp{background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/baiduappLogo_de45621.png) no-repeat 0 0;width:24px;height:24px;margin:3px 10px 0 0;position:relative;top:3px}.res_top_banner .res_top_banner_icon_windows{background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/winlogo_e925689.png) no-repeat 0 0;width:18px;height:18px;margin:9px 10px 0 0}.res_top_banner .res_top_banner_download{display:inline-block;width:65px;line-height:21px;_padding-top:1px;margin:0 0 0 10px;color:#333;background:#fbfbfb;border:1px solid #b4b6b8;text-align:center;text-decoration:none}.res_top_banner .res_top_banner_download:hover{border:1px solid #38f}.res_top_banner .res_top_banner_download:active{background:#f0f0f0;border:1px solid #b4b6b8}.res_top_banner .res_top_banner_close{background-position:-672px -144px;cursor:pointer;position:absolute;right:10px;top:10px}.res_top_banner_for_win{height:34px;text-align:left;border-bottom:1px solid #f0f0f0;background:#fdfdfd;font-size:13px;padding-left:12px;color:#333;position:relative;z-index:302}.res_top_banner_for_win span{_zoom:1;color:#666}.res_top_banner_for_win .res_top_banner_download{display:inline-block;width:auto;line-height:21px;_padding-top:1px;margin:0 0 0 16px;color:#333;text-align:left;text-decoration:underline}.res_top_banner_for_win .res_top_banner_icon_windows{background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/winlogo_e925689.png) no-repeat 0 0;width:18px;height:18px;margin:8px 8px 0 0}.res_top_banner_for_win .res_top_banner_close{background-position:-672px -144px;cursor:pointer;position:absolute;right:10px;top:10px}.res-gap-right16{margin-right:16px}.res-border-top{border-top:1px solid #f3f3f3}.res-border-bottom{border-bottom:1px solid #f3f3f3}.res-queryext-pos{position:relative;top:1px;_top:0}.c-trust-ecard{height:86px;_height:97px;overflow:hidden}@-moz-document url-prefix(){.result,.f{width:538px}}body{min-width:1000px}#ftCon{display:none}#qrcode{display:none}#pad-version{display:none}#index_guide{display:none}#index_logo{display:none}#u1{display:none}.s_ipt_wr{height:32px}body{padding:0}.s_form:after,.s_tab:after{content:\\\".\\\";display:block;height:0;clear:both;visibility:hidden}.s_form{zoom:1;height:55px;padding:0 0 0 10px}#result_logo{float:left;margin:7px 0 0}#result_logo img{width:101px}#head{padding:0;margin:0;width:100%;position:absolute;z-index:301;min-width:1000px;background:#fff;border-bottom:1px solid #ebebeb;position:fixed;_position:absolute;-webkit-transform:translateZ(0)}#head .head_wrapper{_width:1000px}#head.s_down{box-shadow:0 0 5px #888}.fm{clear:none;float:left;margin:11px 0 0 10px}#s_tab{background:#f8f8f8;line-height:36px;height:38px;padding:55px 0 0 121px;float:none;zoom:1}#s_tab a,#s_tab b{width:54px;display:inline-block;text-decoration:none;text-align:center;color:#666;font-size:14px}#s_tab b{border-bottom:2px solid #38f;font-weight:700;color:#323232}#s_tab a:hover{color:#323232}#content_left{width:540px;padding-left:121px;padding-top:5px}#content_right{margin-top:45px}#content_bottom{width:540px;padding-left:121px}#page{padding:0 0 0 121px;margin:30px 0 40px}.to_tieba,.to_zhidao_bottom{margin:10px 0 0 121px;padding-top:5px}.nums{margin:0 0 0 121px;height:42px;line-height:42px}#rs{padding:0;margin:6px 0 0 121px;width:600px}#rs th{width:175px;line-height:22px}#rs .tt{padding:0;line-height:30px}#rs td{width:5px}#rs table{width:540px}#help{background:#f5f6f5;zoom:1;padding:0 0 0 50px;float:right}#help a{color:#777;padding:0 15px;text-decoration:none}#help a:hover{color:#333}#foot{background:#f5f6f5;border-top:1px solid #ebebeb;text-align:left;height:42px;line-height:42px;margin-top:40px;*margin-top:0}#foot .foot_c{float:left;padding:0 0 0 121px}.content_none{padding:45px 0 25px 121px}.nors p{font-size:18px;font-family:microsoft yahei;color:#000}.nors p em{color:#c00}.nors .tip_head{color:#666;font-size:13px;line-height:28px}.nors li{color:#333;line-height:28px;font-size:13px;font-family:'\\u5b8b\\u4f53';padding-left:30px;list-style-position:inside;list-style-type:disc}#mCon{top:5px}.s_ipt_wr.bg,.s_btn_wr.bg,#su.bg{background-image:none}.s_ipt_wr.bg{background:0 0}.s_btn_wr{width:auto;height:auto;border-bottom:1px solid transparent;*border-bottom:0}.s_btn{width:100px;height:34px;color:#fff;letter-spacing:1px;background:#3385ff;border-bottom:1px solid #2d78f4;outline:medium;*border-bottom:0;-webkit-appearance:none;-webkit-border-radius:0}.s_btn.btnhover{background:#317ef3;border-bottom:1px solid #2868c8;*border-bottom:0;box-shadow:1px 1px 1px #ccc}.s_btn_h{background:#3075dc;box-shadow:inset 1px 1px 3px #2964bb;-webkit-box-shadow:inset 1px 1px 3px #2964bb;-moz-box-shadow:inset 1px 1px 3px #2964bb;-o-box-shadow:inset 1px 1px 3px #2964bb}#wrapper_wrapper .container_l .EC_ppim_top,#wrapper_wrapper .container_xl .EC_ppim_top{width:640px}#wrapper_wrapper .container_s .EC_ppim_top{width:570px}#head .c-icon-bear-round{display:none}.container_l #content_right{width:384px}.container_l{width:1212px}.container_xl #content_right{width:384px}.container_xl{width:1257px}.index_tab_top{display:none}.index_tab_bottom{display:none}#lg{display:none}#m{display:none}#ftCon{display:none}#ent_sug{position:absolute;margin:141px 0 0 130px;font-size:13px;color:#666}.foot_fixed_bottom{position:fixed;bottom:0;width:100%;_position:absolute;_bottom:auto}#head .headBlock{margin:-5px 0 6px 121px}#content_left .leftBlock{margin-bottom:14px;padding-bottom:5px;border-bottom:1px solid #f3f3f3}.hint_toprq_tips{position:relative;width:537px;height:19px;line-height:19px;overflow:hidden;display:none}.hint_toprq_tips span{color:#666}.hint_toprq_icon{margin:0 4px 0 0}.hint_toprq_tips_items{width:444px;_width:440px;max-height:38px;position:absolute;left:95px;top:1px}.hint_toprq_tips_items div{display:inline-block;float:left;height:19px;margin-right:18px;white-space:nowrap;word-break:keep-all}.translateContent{max-width:350px}.translateContent .translateTool{height:16px;margin:-3px 2px}.translateContent .action-translate,.translateContent .action-search{display:inline-block;width:20px;height:16px;background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/translate_tool_icon_57087b6.gif) no-repeat}.translateContent .action-translate{background-position:0 0;border-right:1px solid #dcdcdc}.translateContent .action-translate:hover{background-position:0 -20px}.translateContent .action-search{background-position:-20px 0}.translateContent .action-search:hover{background-position:-20px -20px}.nums{width:538px}.search_tool{_padding-top:15px}.head_nums_cont_outer{height:40px;overflow:hidden;position:relative}.head_nums_cont_inner{position:relative}.search_tool_conter .c-gap-left{margin-left:23px}.search_tool_conter .c-icon-triangle-down{opacity:.6}.search_tool_conter .c-icon-triangle-down:hover{opacity:1}.search_tool,.search_tool_close{float:right}.search_tool,.search_tool_conter span{cursor:pointer;color:#666}.search_tool:hover,.search_tool_conter span:hover{color:#333}.search_tool_conter{font-size:12px;color:#666;margin:0 0 0 121px;height:42px;width:538px;line-height:42px;*height:auto;*line-height:normal;*padding:14px 0}.search_tool_conter span strong{color:#666}.c-tip-con .c-tip-langfilter ul{width:80px;text-align:left;color:#666}.c-tip-con .c-tip-langfilter li a{text-indent:15px;color:#666}.c-tip-con .c-tip-langfilter li span{text-indent:15px;padding:3px 0;color:#999;display:block}.c-tip-con .c-tip-timerfilter ul{width:115px;text-align:left;color:#666}.c-tip-con .c-tip-timerfilter-ft ul{width:180px}.c-tip-con .c-tip-timerfilter-si ul{width:206px;padding:7px 10px 10px}.c-tip-con .c-tip-timerfilter li a{text-indent:15px;color:#666}.c-tip-con .c-tip-timerfilter li span{text-indent:15px;padding:3px 0;color:#999;display:block}.c-tip-con .c-tip-timerfilter-ft li a,.c-tip-con .c-tip-timerfilter-ft li span{text-indent:20px}.c-tip-custom{padding:0 15px 10px;position:relative;zoom:1}.c-tip-custom hr{border:0;height:0;border-top:1px solid #ebebeb}.c-tip-custom p{color:#b6b6b6;height:25px;line-height:25px;margin:2px 0}.c-tip-custom .c-tip-custom-et{margin-bottom:7px}.c-tip-custom-input,.c-tip-si-input{display:inline-block;font-size:11px;color:#333;margin-left:4px;padding:0 2px;width:74%;height:16px;line-height:16px\\\\9;border:1px solid #ebebeb;outline:0;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;overflow:hidden;position:relative}.c-tip-custom-input-init{color:#d4d4d4}.c-tip-custom-input-focus,.c-tip-si-input-focus{border:1px solid #3385ff}.c-tip-timerfilter-si .c-tip-si-input{width:138px;height:22px;line-height:22px;vertical-align:0;*vertical-align:-6px;_vertical-align:-5px;padding:0 5px;margin-left:0}.c-tip-con .c-tip-timerfilter li .c-tip-custom-submit,.c-tip-con .c-tip-timerfilter li .c-tip-timerfilter-si-submit{display:inline;padding:4px 10px;margin:0;color:#333;border:1px solid #d8d8d8;font-family:inherit;font-weight:400;text-align:center;vertical-align:0;background-color:#f9f9f9;outline:0}.c-tip-con .c-tip-timerfilter li .c-tip-custom-submit:hover,.c-tip-con .c-tip-timerfilter li .c-tip-timerfilter-si-submit:hover{display:inline;border-color:#388bff}.c-tip-timerfilter-si-error,.c-tip-timerfilter-custom-error{display:none;color:#3385FF;padding-left:4px}.c-tip-timerfilter-custom-error{padding:0;margin:-5px -13px 7px 0}#c-tip-custom-calenderCont{position:absolute;background:#fff;white-space:nowrap;padding:5px 10px;color:#000;border:1px solid #e4e4e4;-webkit-box-shadow:0 2px 4px rgba(0,0,0,.2);box-shadow:0 2px 4px rgba(0,0,0,.2)}#c-tip-custom-calenderCont p{text-align:center;padding:2px 0 4px;*padding:4px 0}#c-tip-custom-calenderCont p i{color:#8e9977;cursor:pointer;text-decoration:underline;font-size:13px}#c-tip-custom-calenderCont .op_cal{background:#fff}.op_cal table{background:#eeefea;margin:0;border-collapse:separate}.op_btn_pre_month,.op_btn_next_month{cursor:pointer;display:block;margin-top:6px}.op_btn_pre_month{float:left;background-position:0 -46px}.op_btn_next_month{float:right;background-position:-18px -46px}.op_cal .op_mon_pre1{padding:0}.op_mon th{text-align:center;font-size:12px;background:#FFF;font-weight:700;border:1px solid #FFF;padding:0}.op_mon td{text-align:center;cursor:pointer}.op_mon h5{margin:0;padding:0 4px;text-align:center;font-size:14px;background:#FFF;height:28px;line-height:28px;border-bottom:1px solid #f5f5f5;margin-bottom:5px}.op_mon strong{font-weight:700}.op_mon td{padding:0 5px;border:1px solid #fff;font-size:12px;background:#fff;height:100%}.op_mon td.op_mon_pre_month{color:#a4a4a4}.op_mon td.op_mon_cur_month{color:#00c}.op_mon td.op_mon_next_month{color:#a4a4a4}.op_mon td.op_mon_day_hover{color:#000;border:1px solid #278df2}.op_mon td.op_mon_day_selected{color:#FFF;border:1px solid #278df2;background:#278df2}.op_mon td.op_mon_day_disabled{cursor:not-allowed;color:#ddd}.zhannei-si-none,.zhannei-si,.hit_quet,.zhannei-search{display:none}#c-tip-custom-calenderCont .op_mon td.op_mon_cur_month{color:#000}#c-tip-custom-calenderCont .op_mon td.op_mon_day_selected{color:#fff}.c-icon-toen{width:24px;height:24px;line-height:24px;background-color:#1cb7fd;color:#fff;font-size:14px;font-weight:700;font-style:normal;display:block;display:inline-block;float:left;text-align:center}.hint_common_restop{width:538px;color:#999;font-size:12px;text-align:left;margin:5px 0 10px 121px}#con-at~#wrapper_wrapper .hint_common_restop{padding-top:7px}.sitelink{overflow:auto;zoom:1}.sitelink_summary{float:left;width:47%;padding-right:30px}.sitelink_summary a{font-size:1.1em;position:relative}.sitelink_summary_last{padding-right:0}.sitelink_en{overflow:auto;zoom:1}.sitelink_en_summary{float:left;width:47%;padding-right:30px}.sitelink_en_summary a{font-size:1.1em;position:relative}.sitelink_en_summary_last{padding-right:0}.sitelink_en_summary_title,.sitelink_en_summary .m{height:22px;overflow:hidden}.without-summary-sitelink-en-container{overflow:hidden;height:22px}.without-summary-sitelink-en{float:left}.without-summary-sitelink-en-delimiter{margin-right:5px;margin-left:5px}.wise-qrcode-wrapper{height:42px;line-height:42px;position:absolute;margin-left:8px;top:0;z-index:300}.wise-qrcode-icon-outer{overflow:hidden}.wise-qrcode-icon{position:relative;display:inline-block;width:15px;height:15px;vertical-align:text-bottom;overflow:hidden;opacity:.5;background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/qrcode_icon_ae03227.png) no-repeat;-webkit-transform:translateY(42px);-ms-transform:translateY(42px);transform:translateY(42px);-webkit-background-size:100% 100%;background-size:100%}.wise-qrcode-container{padding:15px;background:#fff;display:none;top:61px;left:0;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);-webkit-box-shadow:0 0 1px rgba(0,0,0,.5);box-shadow:0 0 1px rgba(0,0,0,.5)}.wise-qrcode-wrapper.show:hover .wise-qrcode-container{display:block}.wise-qrcode-image{width:90px;height:90px;display:inline-block;vertical-align:middle}.wise-qrcode-image .wise-qrcode-canvas{width:100%;height:100%}.wise-qrcode-right{display:inline-block;vertical-align:middle;margin-left:15px}.wise-qrcode-title{font-size:16px;color:#000;line-height:26px}.wise-qrcode-text{font-size:12px;line-height:22px;color:#555}.c-frame{margin-bottom:18px}.c-offset{padding-left:10px}.c-gray{color:#666}.c-gap-top-small{margin-top:5px}.c-gap-top{margin-top:10px}.c-gap-bottom-small{margin-bottom:5px}.c-gap-bottom{margin-bottom:10px}.c-gap-left{margin-left:12px}.c-gap-left-small{margin-left:6px}.c-gap-right{margin-right:12px}.c-gap-right-small{margin-right:6px}.c-gap-right-large{margin-right:16px}.c-gap-left-large{margin-left:16px}.c-gap-icon-right-small{margin-right:5px}.c-gap-icon-right{margin-right:10px}.c-gap-icon-left-small{margin-left:5px}.c-gap-icon-left{margin-left:10px}.c-container{width:538px;font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-word}.c-container .c-container{width:auto}.c-container table{border-collapse:collapse;border-spacing:0}.c-container td{font-size:13px;line-height:1.54}.c-default{font-size:13px;line-height:1.54;word-wrap:break-word;word-break:break-all}.c-container .t,.c-default .t{line-height:1.54}.c-default .t{margin-bottom:0}.cr-content{width:259px;font-size:13px;line-height:1.54;color:#333;word-wrap:break-word;word-break:normal}.cr-content table{border-collapse:collapse;border-spacing:0}.cr-content td{font-size:13px;line-height:1.54;vertical-align:top}.cr-offset{padding-left:17px}.cr-title{font-size:14px;line-height:1.29;font-weight:700}.cr-title-sub{float:right;font-size:13px;font-weight:400}.c-row{*zoom:1}.c-row:after{display:block;height:0;content:\\\"\\\";clear:both;visibility:hidden}.c-span2{width:29px}.c-span3{width:52px}.c-span4{width:75px}.c-span5{width:98px}.c-span6{width:121px}.c-span7{width:144px}.c-span8{width:167px}.c-span9{width:190px}.c-span10{width:213px}.c-span11{width:236px}.c-span12{width:259px}.c-span13{width:282px}.c-span14{width:305px}.c-span15{width:328px}.c-span16{width:351px}.c-span17{width:374px}.c-span18{width:397px}.c-span19{width:420px}.c-span20{width:443px}.c-span21{width:466px}.c-span22{width:489px}.c-span23{width:512px}.c-span24{width:535px}.c-span2,.c-span3,.c-span4,.c-span5,.c-span6,.c-span7,.c-span8,.c-span9,.c-span10,.c-span11,.c-span12,.c-span13,.c-span14,.c-span15,.c-span16,.c-span17,.c-span18,.c-span19,.c-span20,.c-span21,.c-span22,.c-span23,.c-span24{float:left;_display:inline;margin-right:17px;list-style:none}.c-span-last{margin-right:0}.c-span-last-s{margin-right:0}.container_l .cr-content{width:351px}.container_l .cr-content .c-span-last-s{margin-right:17px}.container_l .cr-content-narrow{width:259px}.container_l .cr-content-narrow .c-span-last-s{margin-right:0}.c-border{width:518px;padding:9px;border:1px solid #e3e3e3;border-bottom-color:#e0e0e0;border-right-color:#ececec;box-shadow:1px 2px 1px rgba(0,0,0,.072);-webkit-box-shadow:1px 2px 1px rgba(0,0,0,.072);-moz-box-shadow:1px 2px 1px rgba(0,0,0,.072);-o-box-shadow:1px 2px 1px rgba(0,0,0,.072)}.c-border .c-gap-left{margin-left:10px}.c-border .c-gap-left-small{margin-left:5px}.c-border .c-gap-right{margin-right:10px}.c-border .c-gap-right-small{margin-right:5px}.c-border .c-border{width:auto;padding:0;border:0;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none}.c-border .c-span2{width:34px}.c-border .c-span3{width:56px}.c-border .c-span4{width:78px}.c-border .c-span5{width:100px}.c-border .c-span6{width:122px}.c-border .c-span7{width:144px}.c-border .c-span8{width:166px}.c-border .c-span9{width:188px}.c-border .c-span10{width:210px}.c-border .c-span11{width:232px}.c-border .c-span12{width:254px}.c-border .c-span13{width:276px}.c-border .c-span14{width:298px}.c-border .c-span15{width:320px}.c-border .c-span16{width:342px}.c-border .c-span17{width:364px}.c-border .c-span18{width:386px}.c-border .c-span19{width:408px}.c-border .c-span20{width:430px}.c-border .c-span21{width:452px}.c-border .c-span22{width:474px}.c-border .c-span23{width:496px}.c-border .c-span24{width:518px}.c-border .c-span2,.c-border .c-span3,.c-border .c-span4,.c-border .c-span5,.c-border .c-span6,.c-border .c-span7,.c-border .c-span8,.c-border .c-span9,.c-border .c-span10,.c-border .c-span11,.c-border .c-span12,.c-border .c-span13,.c-border .c-span14,.c-border .c-span15,.c-border .c-span16,.c-border .c-span17,.c-border .c-span18,.c-border .c-span19,.c-border .c-span20,.c-border .c-span21,.c-border .c-span22,.c-border .c-span23,.c-border .c-span24{margin-right:10px}.c-border .c-span-last{margin-right:0}.c-loading{display:block;width:50px;height:50px;background:url(\\/\\/www.baidu.com\\/aladdin\\/img\\/tools\\/loading.gif) no-repeat 0 0}.c-vline{display:inline-block;margin:0 3px;border-left:1px solid #ddd;width:0;height:12px;_vertical-align:middle;_overflow:hidden}.c-icon{background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/icons_5859e57.png) no-repeat 0 0;_background-image:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/icons_d5b04cc.gif)}.c-icon{display:inline-block;width:14px;height:14px;vertical-align:text-bottom;font-style:normal;overflow:hidden}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold{width:12px;height:12px}.c-icon-star,.c-icon-star-gray{width:60px}.c-icon-qa-empty,.c-icon-safeguard,.c-icon-register-empty,.c-icon-zan,.c-icon-music,.c-icon-music-gray,.c-icon-location,.c-icon-warning,.c-icon-doc,.c-icon-xls,.c-icon-ppt,.c-icon-pdf,.c-icon-txt,.c-icon-play-black,.c-icon-gift,.c-icon-baidu-share,.c-icon-bear,.c-icon-bear-border,.c-icon-location-blue,.c-icon-hotAirBall,.c-icon-moon,.c-icon-streetMap,.c-icon-mv,.c-icon-zhidao-s,.c-icon-shopping{width:16px;height:16px}.c-icon-bear-circle,.c-icon-warning-circle,.c-icon-warning-triangle,.c-icon-warning-circle-gray{width:18px;height:18px}.c-icon-tieba,.c-icon-zhidao,.c-icon-bear-p,.c-icon-bear-pn{width:24px;height:24px}.c-icon-ball-blue,.c-icon-ball-red{width:38px;height:38px}.c-icon-unfold:hover,.c-icon-fold:hover,.c-icon-chevron-unfold:hover,.c-icon-chevron-fold:hover,.c-icon-download:hover,.c-icon-lyric:hover,.c-icon-v:hover,.c-icon-hui:hover,.c-icon-bao:hover,.c-icon-person:hover,.c-icon-high-v:hover,.c-icon-phone:hover,.c-icon-nuo:hover,.c-icon-fan:hover,.c-icon-med:hover,.c-icon-air:hover,.c-icon-share2:hover,.c-icon-v1:hover,.c-icon-v2:hover,.c-icon-write:hover,.c-icon-R:hover{border-color:#388bff}.c-icon-unfold:active,.c-icon-fold:active,.c-icon-chevron-unfold:active,.c-icon-chevron-fold:active,.c-icon-download:active,.c-icon-lyric:active,.c-icon-v:active,.c-icon-hui:active,.c-icon-bao:active,.c-icon-person:active,.c-icon-high-v:active,.c-icon-phone:active,.c-icon-nuo:active,.c-icon-fan:active,.c-icon-med:active,.c-icon-air:active,.c-icon-share2:active,.c-icon-v1:active,.c-icon-v2:active,.c-icon-write:active,.c-icon-R:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-icon-v3:hover{border-color:#ffb300}.c-icon-v3:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-icon-unfold,.c-icon-fold,.c-icon-chevron-unfold,.c-icon-chevron-fold,.c-icon-download,.c-icon-lyric{border:1px solid #d8d8d8;cursor:pointer}.c-icon-v,.c-icon-hui,.c-icon-bao,.c-icon-person,.c-icon-high-v,.c-icon-phone,.c-icon-nuo,.c-icon-fan,.c-icon-med,.c-icon-air,.c-icon-share2,.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-write,.c-icon-R{border:1px solid #d8d8d8;cursor:pointer;border-color:transparent;_border-color:tomato;_filter:chroma(color=#ff6347)}.c-icon-v1,.c-icon-v2,.c-icon-v3,.c-icon-v1-noborder,.c-icon-v2-noborder,.c-icon-v3-noborder,.c-icon-v1-noborder-disable,.c-icon-v2-noborder-disable,.c-icon-v3-noborder-disable{width:19px}.c-icon-download,.c-icon-lyric{width:16px;height:16px}.c-icon-play-circle,.c-icon-stop-circle{width:18px;height:18px}.c-icon-play-circle-middle,.c-icon-stop-circle-middle{width:24px;height:24px}.c-icon-play-black-large,.c-icon-stop-black-large{width:36px;height:36px}.c-icon-play-black-larger,.c-icon-stop-black-larger{width:52px;height:52px}.c-icon-flag{background-position:0 -144px}.c-icon-bus{background-position:-24px -144px}.c-icon-calendar{background-position:-48px -144px}.c-icon-street{background-position:-72px -144px}.c-icon-map{background-position:-96px -144px}.c-icon-bag{background-position:-120px -144px}.c-icon-money{background-position:-144px -144px}.c-icon-game{background-position:-168px -144px}.c-icon-user{background-position:-192px -144px}.c-icon-globe{background-position:-216px -144px}.c-icon-lock{background-position:-240px -144px}.c-icon-plane{background-position:-264px -144px}.c-icon-list{background-position:-288px -144px}.c-icon-star-gray{background-position:-312px -144px}.c-icon-circle-gray{background-position:-384px -144px}.c-icon-triangle-down{background-position:-408px -144px}.c-icon-triangle-up{background-position:-432px -144px}.c-icon-triangle-up-empty{background-position:-456px -144px}.c-icon-sort-gray{background-position:-480px -144px}.c-icon-sort-up{background-position:-504px -144px}.c-icon-sort-down{background-position:-528px -144px}.c-icon-down-gray{background-position:-552px -144px}.c-icon-up-gray{background-position:-576px -144px}.c-icon-download-noborder{background-position:-600px -144px}.c-icon-lyric-noborder{background-position:-624px -144px}.c-icon-download-white{background-position:-648px -144px}.c-icon-close{background-position:-672px -144px}.c-icon-fail{background-position:-696px -144px}.c-icon-success{background-position:-720px -144px}.c-icon-triangle-down-g{background-position:-744px -144px}.c-icon-refresh{background-position:-768px -144px}.c-icon-chevron-left-gray{background-position:-816px -144px}.c-icon-chevron-right-gray{background-position:-840px -144px}.c-icon-setting{background-position:-864px -144px}.c-icon-close2{background-position:-888px -144px}.c-icon-chevron-top-gray-s{background-position:-912px -144px}.c-icon-fullscreen{background-position:0 -168px}.c-icon-safe{background-position:-24px -168px}.c-icon-exchange{background-position:-48px -168px}.c-icon-chevron-bottom{background-position:-72px -168px}.c-icon-chevron-top{background-position:-96px -168px}.c-icon-unfold{background-position:-120px -168px}.c-icon-fold{background-position:-144px -168px}.c-icon-chevron-unfold{background-position:-168px -168px}.c-icon-qa{background-position:-192px -168px}.c-icon-register{background-position:-216px -168px}.c-icon-star{background-position:-240px -168px}.c-icon-star-gray{position:relative}.c-icon-star-gray .c-icon-star{position:absolute;top:0;left:0}.c-icon-play-blue{background-position:-312px -168px}.c-icon-pic{width:16px;background-position:-336px -168px}.c-icon-chevron-fold{background-position:-360px -168px}.c-icon-video{width:18px;background-position:-384px -168px}.c-icon-circle-blue{background-position:-408px -168px}.c-icon-circle-yellow{background-position:-432px -168px}.c-icon-play-white{background-position:-456px -168px}.c-icon-triangle-down-blue{background-position:-480px -168px}.c-icon-chevron-unfold2{background-position:-504px -168px}.c-icon-right{background-position:-528px -168px}.c-icon-right-empty{background-position:-552px -168px}.c-icon-new-corner{width:15px;background-position:-576px -168px}.c-icon-horn{background-position:-600px -168px}.c-icon-right-large{width:18px;background-position:-624px -168px}.c-icon-wrong-large{background-position:-648px -168px}.c-icon-circle-blue-s{background-position:-672px -168px}.c-icon-play-gray{background-position:-696px -168px}.c-icon-up{background-position:-720px -168px}.c-icon-down{background-position:-744px -168px}.c-icon-stable{background-position:-768px -168px}.c-icon-calendar-blue{background-position:-792px -168px}.c-icon-triangle-down-blue2{background-position:-816px -168px}.c-icon-triangle-up-blue2{background-position:-840px -168px}.c-icon-down-blue{background-position:-864px -168px}.c-icon-up-blue{background-position:-888px -168px}.c-icon-ting{background-position:-912px -168px}.c-icon-piao{background-position:-936px -168px}.c-icon-wrong-empty{background-position:-960px -168px}.c-icon-warning-circle-s{background-position:-984px -168px}.c-icon-chevron-left{background-position:-1008px -168px}.c-icon-chevron-right{background-position:-1032px -168px}.c-icon-circle-gray-s{background-position:-1056px -168px}.c-icon-v,.c-icon-v-noborder{background-position:0 -192px}.c-icon-hui{background-position:-24px -192px}.c-icon-bao{background-position:-48px -192px}.c-icon-phone{background-position:-72px -192px}.c-icon-qa-empty{background-position:-96px -192px}.c-icon-safeguard{background-position:-120px -192px}.c-icon-register-empty{background-position:-144px -192px}.c-icon-zan{background-position:-168px -192px}.c-icon-music{background-position:-192px -192px}.c-icon-music-gray{background-position:-216px -192px}.c-icon-location{background-position:-240px -192px}.c-icon-warning{background-position:-264px -192px}.c-icon-doc{background-position:-288px -192px}.c-icon-xls{background-position:-312px -192px}.c-icon-ppt{background-position:-336px -192px}.c-icon-pdf{background-position:-360px -192px}.c-icon-txt{background-position:-384px -192px}.c-icon-play-black{background-position:-408px -192px}.c-icon-play-black:hover{background-position:-432px -192px}.c-icon-gift{background-position:-456px -192px}.c-icon-baidu-share{background-position:-480px -192px}.c-icon-bear{background-position:-504px -192px}.c-icon-R{background-position:-528px -192px}.c-icon-bear-border{background-position:-576px -192px}.c-icon-person,.c-icon-person-noborder{background-position:-600px -192px}.c-icon-location-blue{background-position:-624px -192px}.c-icon-hotAirBall{background-position:-648px -192px}.c-icon-moon{background-position:-672px -192px}.c-icon-streetMap{background-position:-696px -192px}.c-icon-high-v,.c-icon-high-v-noborder{background-position:-720px -192px}.c-icon-nuo{background-position:-744px -192px}.c-icon-mv{background-position:-768px -192px}.c-icon-fan{background-position:-792px -192px}.c-icon-med{background-position:-816px -192px}.c-icon-air{background-position:-840px -192px}.c-icon-share2{background-position:-864px -192px}.c-icon-v1,.c-icon-v1-noborder{background-position:-888px -192px}.c-icon-v2,.c-icon-v2-noborder{background-position:-912px -192px}.c-icon-v3,.c-icon-v3-noborder{background-position:-936px -192px}.c-icon-v1-noborder-disable{background-position:-960px -192px}.c-icon-v2-noborder-disable{background-position:-984px -192px}.c-icon-v3-noborder-disable{background-position:-1008px -192px}.c-icon-write{background-position:-1032px -192px}.c-icon-zhidao-s{background-position:-1056px -192px}.c-icon-shopping{background-position:-1080px -192px}.c-icon-bear-circle{background-position:0 -216px}.c-icon-warning-circle{background-position:-24px -216px}.c-icon-warning-triangle{width:24px;background-position:-48px -216px}.c-icon-warning-circle-gray{background-position:-72px -216px}.c-icon-ball-red{background-position:0 -240px}.c-icon-ball-blue{background-position:-48px -240px}.c-icon-tieba{background-position:0 -288px}.c-icon-zhidao{background-position:-48px -288px}.c-icon-bear-p{background-position:-96px -288px}.c-icon-bear-pn{background-position:-144px -288px}.c-icon-download{background-position:0 -336px}.c-icon-lyric{background-position:-24px -336px}.c-icon-play-circle{background-position:-48px -336px}.c-icon-play-circle:hover{background-position:-72px -336px}.c-icon-stop-circle{background-position:-96px -336px}.c-icon-stop-circle:hover{background-position:-120px -336px}.c-icon-play-circle-middle{background-position:0 -360px}.c-icon-play-circle-middle:hover{background-position:-48px -360px}.c-icon-stop-circle-middle{background-position:-96px -360px}.c-icon-stop-circle-middle:hover{background-position:-144px -360px}.c-icon-play-black-large{background-position:0 -408px}.c-icon-play-black-large:hover{background-position:-48px -408px}.c-icon-stop-black-large{background-position:-96px -408px}.c-icon-stop-black-large:hover{background-position:-144px -408px}.c-icon-play-black-larger{background-position:0 -456px}.c-icon-play-black-larger:hover{background-position:-72px -456px}.c-icon-stop-black-larger{background-position:-144px -456px}.c-icon-stop-black-larger:hover{background-position:-216px -456px}.c-recommend{font-size:0;padding:5px 0;border:1px solid #f3f3f3;border-left:0;border-right:0}.c-recommend .c-icon{margin-bottom:-4px}.c-recommend .c-gray,.c-recommend a{font-size:13px}.c-recommend-notopline{padding-top:0;border-top:0}.c-recommend-vline{display:inline-block;margin:0 10px -2px;border-left:1px solid #d8d8d8;width:0;height:12px;_vertical-align:middle;_overflow:hidden}.c-text{display:inline-block;padding:2px;text-align:center;vertical-align:text-bottom;font-size:12px;line-height:100%;font-style:normal;font-weight:400;color:#fff;overflow:hidden}a.c-text{text-decoration:none}.c-text-new{background-color:#f13f40}.c-text-info{padding-left:0;padding-right:0;font-weight:700;color:#2b99ff;*vertical-align:baseline;_position:relative;_top:2px}.c-text-info b{_position:relative;_top:-1px}.c-text-info span{padding:0 2px;font-weight:400}.c-text-important{background-color:#1cb7fd}.c-text-public{background-color:#2b99ff}.c-text-warning{background-color:#ff830f}.c-text-prompt{background-color:#f5c537}.c-text-danger{background-color:#f13f40}.c-text-safe{background-color:#52c277}.c-text-empty{padding-top:1px;padding-bottom:1px;border:1px solid #d8d8d8;cursor:pointer;color:#23b9fd;background-color:#fff}.c-text-empty:hover{border-color:#388bff}.c-text-empty:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}.c-text-mult{padding-left:5px;padding-right:5px}.c-text-gray{background-color:#666}.c-btn,.c-btn:visited{color:#333!important}.c-btn{display:inline-block;padding:0 14px;margin:0;height:24px;line-height:25px;font-size:13px;filter:chroma(color=#000000);*zoom:1;border:1px solid #d8d8d8;cursor:pointer;font-family:inherit;font-weight:400;text-align:center;vertical-align:middle;background-color:#f9f9f9;overflow:hidden;outline:0}.c-btn:hover{border-color:#388bff}.c-btn:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}a.c-btn{text-decoration:none}button.c-btn{height:26px;_line-height:18px;*overflow:visible}button.c-btn::-moz-focus-inner{padding:0;border:0}.c-btn .c-icon{margin-top:5px}.c-btn-disable{color:#999!important}.c-btn-disable:visited{color:#999!important}.c-btn-disable:hover{border:1px solid #d8d8d8;cursor:default}.c-btn-disable:active{border-color:#d8d8d8;background-color:#f9f9f9;box-shadow:none;-webkit-box-shadow:none;-moz-box-shadow:none;-o-box-shadow:none}.c-btn-mini{padding-left:5px;padding-right:5px;height:18px;line-height:18px;font-size:12px}button.c-btn-mini{height:20px;_height:18px;_line-height:14px}.c-btn-mini .c-icon{margin-top:2px}.c-btn-large{height:28px;line-height:28px;font-size:14px;font-family:\\\"\\u5fae\\u8f6f\\u96c5\\u9ed1\\\",\\\"\\u9ed1\\u4f53\\\"}button.c-btn-large{height:30px;_line-height:24px}.c-btn-large .c-icon{margin-top:7px;_margin-top:6px}.c-btn-primary,.c-btn-primary:visited{color:#fff!important}.c-btn-primary{background-color:#388bff;border-color:#3c8dff #408ffe #3680e6}.c-btn-primary:hover{border-color:#2678ec #2575e7 #1c6fe2 #2677e7;background-color:#388bff;background-image:url(data:image\\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAMAAACuX0YVAAAABlBMVEVnpv85i\\/9PO5r4AAAAD0lEQVR42gEEAPv\\/AAAAAQAFAAIros7PAAAAAElFTkSuQmCC);*background-image:none;background-repeat:repeat-x;box-shadow:1px 1px 1px rgba(0,0,0,.4);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.4);-moz-box-shadow:1px 1px 1px rgba(0,0,0,.4);-o-box-shadow:1px 1px 1px rgba(0,0,0,.4)}.c-btn-primary:active{border-color:#178ee3 #1784d0 #177bbf #1780ca;background-color:#388bff;background-image:none;box-shadow:inset 1px 1px 1px rgba(0,0,0,.15);-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,.15);-moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,.15);-o-box-shadow:inset 1px 1px 1px rgba(0,0,0,.15)}.c-btn .c-icon{float:left}.c-dropdown2{position:relative;display:inline-block;width:100%;height:26px;line-height:26px;font-size:13px;vertical-align:middle;outline:0;_font-family:SimSun;background-color:#fff;word-wrap:normal;word-break:normal}.c-dropdown2 .c-dropdown2-btn-group{position:relative;height:24px;border:1px solid #999;border-bottom-color:#d8d8d8;border-right-color:#d8d8d8;-moz-user-select:none;-webkit-user-select:none;user-select:none}.c-dropdown2:hover .c-dropdown2-btn-group,.c-dropdown2-hover .c-dropdown2-btn-group{box-shadow:inset 1px 1px 0 0 #d8d8d8;-webkit-box-shadow:inset 1px 1px 0 0 #d8d8d8;-moz-box-shadow:inset 1px 1px 0 0 #d8d8d8;-o-box-shadow:inset 1px 1px 0 0 #d8d8d8}.c-dropdown2:hover .c-dropdown2-btn-icon,.c-dropdown2-hover .c-dropdown2-btn-icon{box-shadow:inset 0 1px 0 0 #d8d8d8;-webkit-box-shadow:inset 0 1px 0 0 #d8d8d8;-moz-box-shadow:inset 0 1px 0 0 #d8d8d8;-o-box-shadow:inset 0 1px 0 0 #d8d8d8}.c-dropdown2:hover .c-dropdown2-btn-icon-border,.c-dropdown2-hover .c-dropdown2-btn-icon-border{background-color:#f2f2f2}.c-dropdown2 .c-dropdown2-btn{height:24px;padding-left:10px;padding-right:10px;cursor:default;overflow:hidden;white-space:nowrap}.c-dropdown2 .c-dropdown2-btn-icon{position:absolute;top:0;right:0;width:23px;height:24px;line-height:24px;background-color:#fff;padding:0 1px 0 10px}.c-dropdown2 .c-dropdown2-btn-icon-border{height:24px;width:23px;border-left:1px solid #d9d9d9;text-align:center;zoom:1}.c-dropdown2 .c-icon-triangle-down{*margin-top:5px;_margin-left:2px}.c-dropdown2 .c-dropdown2-menu{position:absolute;left:0;top:100%;_margin-top:0;width:100%;overflow:hidden;border:1px solid #bbb;background:#fff;visibility:hidden}.c-dropdown2 .c-dropdown2-menu-inner{overflow:hidden}.c-dropdown2 .c-dropdown2-option{background-color:#fff;cursor:pointer}.c-dropdown2 .c-dropdown2-selected{background-color:#f5f5f5}.c-dropdown2-common ul,.c-dropdown2-common li{margin:0;padding:0;list-style:none}.c-dropdown2-common .c-dropdown2-option{height:26px;line-height:26px;font-size:12px;color:#333;white-space:nowrap;cursor:pointer;padding-left:10px}.c-dropdown2-common .c-dropdown2-selected{background-color:#f5f5f5}.c-dropdown2-common .c-dropdown2-menu-group .c-dropdown2-group{padding-left:10px;font-weight:700;cursor:default}.c-dropdown2-common .c-dropdown2-menu-group .c-dropdown2-option{padding-left:20px}.c-img{display:block;min-height:1px;border:0 0}.c-img3{width:52px}.c-img4{width:75px}.c-img6{width:121px}.c-img7{width:144px}.c-img12{width:259px}.c-img15{width:328px}.c-img18{width:397px}.c-border .c-img3{width:56px}.c-border .c-img4{width:78px}.c-border .c-img7{width:144px}.c-border .c-img12{width:254px}.c-border .c-img15{width:320px}.c-border .c-img18{width:386px}.c-index{display:inline-block;padding:1px 0;color:#fff;width:14px;line-height:100%;font-size:12px;text-align:center;background-color:#8eb9f5}.c-index-hot,.c-index-hot1{background-color:#f54545}.c-index-hot2{background-color:#ff8547}.c-index-hot3{background-color:#ffac38}.c-input{display:inline-block;padding:0 4px;height:24px;line-height:24px\\\\9;font-size:13px;border:1px solid #999;border-bottom-color:#d8d8d8;border-right-color:#d8d8d8;outline:0;box-sizing:content-box;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;vertical-align:top;overflow:hidden}.c-input:hover{box-shadow:inset 1px 1px 1px 0 #d8d8d8;-webkit-box-shadow:inset 1px 1px 1px 0 #d8d8d8;-moz-box-shadow:inset 1px 1px 1px 0 #d8d8d8;-o-box-shadow:inset 1px 1px 1px 0 #d8d8d8}.c-input .c-icon{float:right;margin-top:6px}.c-input .c-icon-left{float:left;margin-right:4px}.c-input input{float:left;height:22px;*padding-top:4px;margin-top:2px;font-size:13px;border:0;outline:0}.c-input{width:180px}.c-input input{width:162px}.c-input-xmini{width:65px}.c-input-xmini input{width:47px}.c-input-mini{width:88px}.c-input-mini input{width:70px}.c-input-small{width:157px}.c-input-small input{width:139px}.c-input-large{width:203px}.c-input-large input{width:185px}.c-input-xlarge{width:341px}.c-input-xlarge input{width:323px}.c-input12{width:249px}.c-input12 input{width:231px}.c-input20{width:433px}.c-input20 input{width:415px}.c-border .c-input{width:178px}.c-border .c-input input{width:160px}.c-border .c-input-xmini{width:68px}.c-border .c-input-xmini input{width:50px}.c-border .c-input-mini{width:90px}.c-border .c-input-mini input{width:72px}.c-border .c-input-small{width:156px}.c-border .c-input-small input{width:138px}.c-border .c-input-large{width:200px}.c-border .c-input-large input{width:182px}.c-border .c-input-xlarge{width:332px}.c-border .c-input-xlarge input{width:314px}.c-border .c-input12{width:244px}.c-border .c-input12 input{width:226px}.c-border .c-input20{width:420px}.c-border .c-input20 input{width:402px}.c-numberset{*zoom:1}.c-numberset:after{display:block;height:0;content:\\\"\\\";clear:both;visibility:hidden}.c-numberset li{float:left;margin-right:17px;list-style:none}.c-numberset .c-numberset-last{margin-right:0}.c-numberset a{display:block;width:50px;text-decoration:none;text-align:center;border:1px solid #d8d8d8;cursor:pointer}.c-numberset a:hover{border-color:#388bff}.c-border .c-numberset li{margin-right:10px}.c-border .c-numberset .c-numberset-last{margin-right:0}.c-border .c-numberset a{width:54px}.c-table{width:100%;border-collapse:collapse;border-spacing:0}.c-table th,.c-table td{padding-left:10px;line-height:1.54;font-size:13px;border-bottom:1px solid #f3f3f3;text-align:left}.cr-content .c-table th:first-child,.cr-content .c-table td:first-child{padding-left:0}.c-table th{padding-top:4px;padding-bottom:4px;font-weight:400;color:#666;border-color:#f0f0f0;white-space:nowrap;background-color:#fafafa}.c-table td{padding-top:6.5px;padding-bottom:6.5px}.c-table-hasimg td{padding-top:10px;padding-bottom:10px}.c-table a,.c-table em{text-decoration:none}.c-table a:hover,.c-table a:hover em{text-decoration:underline}.c-table a.c-icon:hover{text-decoration:none}.c-table .c-btn:hover,.c-table .c-btn:hover em{text-decoration:none}.c-table-nohihead th{background-color:transparent}.c-table-noborder td{border-bottom:0}.c-tabs-nav-movetop{margin:-10px -9px 0 -10px;position:relative}.c-tabs-nav{border-bottom:1px solid #d9d9d9;background-color:#fafafa;line-height:1.54;font-size:0;*zoom:1;_overflow-x:hidden;_position:relative}.c-tabs-nav:after{display:block;height:0;content:\\\"\\\";clear:both;visibility:hidden}.c-tabs-nav .c-tabs-nav-btn{float:right;_position:absolute;_top:0;_right:0;_z-index:1;background:#fafafa}.c-tabs-nav .c-tabs-nav-btn .c-tabs-nav-btn-prev,.c-tabs-nav .c-tabs-nav-btn .c-tabs-nav-btn-next{float:left;padding:6px 2px;cursor:pointer}.c-tabs-nav .c-tabs-nav-btn .c-tabs-nav-btn-disable{cursor:default}.c-tabs-nav .c-tabs-nav-view{_position:relative;overflow:hidden;*zoom:1;margin-bottom:-1px}.c-tabs-nav .c-tabs-nav-view .c-tabs-nav-li{margin-bottom:0}.c-tabs-nav .c-tabs-nav-more{float:left;white-space:nowrap}.c-tabs-nav li,.c-tabs-nav a{color:#666;font-size:13px;*zoom:1}.c-tabs-nav li{display:inline-block;margin-bottom:-1px;*display:inline;padding:3px 15px;vertical-align:bottom;border-style:solid;border-width:2px 1px 0;border-color:transparent;_border-color:tomato;_filter:chroma(color=#ff6347);list-style:none;cursor:pointer;white-space:nowrap;overflow:hidden}.c-tabs-nav a{text-decoration:none}.c-tabs-nav .c-tabs-nav-sep{height:16px;width:0;padding:0;margin-bottom:4px;border-style:solid;border-width:0 1px;border-color:transparent #fff transparent #dedede}.c-tabs-nav .c-tabs-nav-selected{_position:relative;border-color:#2c99ff #e4e4e4 #fff #dedede;background-color:#fff;color:#000;cursor:default}.c-tabs-nav-one .c-tabs-nav-selected{border-color:transparent;_border-color:tomato;_filter:chroma(color=#ff6347);background-color:transparent;color:#666}.c-tabs .c-tabs .c-tabs-nav{padding:10px 0 5px;border:0 0;background-color:#fff}.c-tabs .c-tabs .c-tabs-nav li,.c-tabs .c-tabs .c-tabs-nav a{color:#00c}.c-tabs .c-tabs .c-tabs-nav li{padding:0 5px;position:static;margin:0 10px;border:0 0;cursor:pointer;white-space:nowrap}.c-tabs .c-tabs .c-tabs-nav .c-tabs-nav-sep{height:11px;width:0;padding:0;margin:0 0 4px;border:0 0;border-left:1px solid #d8d8d8}.c-tabs .c-tabs .c-tabs-nav .c-tabs-nav-selected{background-color:#2c99ff;color:#fff;cursor:default}.c-tag{padding-top:3px;margin-bottom:3px;height:1.7em;font-size:13px;line-height:1.4em;transition:height .3s ease-in;-webkit-transition:height .3s ease-in;-moz-transition:height .3s ease-in;-ms-transition:height .3s ease-in;-o-transition:height .3s ease-in;*zoom:1;overflow:hidden}.c-tag:after{display:block;height:0;content:\\\"\\\";clear:both;visibility:hidden}.c-tag-cont{overflow:hidden;*zoom:1}.c-tag-type,.c-tag-li,.c-tag-more,.c-tag-cont span{margin:2px 0}.c-tag-type,.c-tag-li,.c-tag-cont span{float:left}.c-tag-type,.c-tag-more{color:#666}.c-tag-li,.c-tag-cont span{padding:0 4px;display:inline-block;margin-right:12px;white-space:nowrap;cursor:pointer;color:#00c}.c-tag .c-tag-selected{background:#388bff;color:#fff}.c-tag-more{float:right;background:#fff;cursor:pointer;*height:18px}.c-tool{display:inline-block;width:56px;height:56px;background:url(\\/\\/www.baidu.com\\/aladdin\\/img\\/tools\\/tools-5.png) no-repeat}.c-tool-region{background-position:0 0}.c-tool-calendar{background-position:-72px 0}.c-tool-city{background-position:-144px 0}.c-tool-phone-pos{background-position:-216px 0}.c-tool-other{background-position:-288px 0}.c-tool-midnight{background-position:-360px 0}.c-tool-kefu{width:121px;background-position:-432px 0}.c-tool-phone{background-position:-576px 0}.c-tool-car{background-position:-648px 0}.c-tool-station{background-position:0 -72px}.c-tool-cheat{background-position:-72px -72px}.c-tool-counter{background-position:-144px -72px}.c-tool-time{background-position:-216px -72px}.c-tool-zip{background-position:-288px -72px}.c-tool-warning{background-position:-360px -72px}.c-tool-ip{background-position:0 -144px}.c-tool-unit{background-position:-72px -144px}.c-tool-rate{background-position:-144px -144px}.c-tool-conversion{background-position:-288px -144px}.c-tool-ads{background-position:-360px -144px}.soutu-input{padding-left:55px!important}.soutu-input-image{position:absolute;left:1px;top:1px;height:28px;width:49px;z-index:1;padding:0;background:#e6e6e6;border:1px solid #e6e6e6}.soutu-input-thumb{height:28px;width:28px;min-width:1px}.soutu-input-close{position:absolute;right:0;top:0;cursor:pointer;display:block;width:22px;height:28px}.soutu-input-close::after{content:\\\" \\\";position:absolute;right:3px;top:50%;cursor:pointer;margin-top:-7px;display:block;width:14px;height:14px;background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/soutu\\/img\\/soutu_icons_new_8abaf8a.png) no-repeat -163px 0}.soutu-input-image:hover .soutu-input-close::after{background-position:-215px 2px}.fb-hint{margin-top:5px;transition-duration:.9s;opacity:0;display:none;color:red}.fb-img{display:none}.fb-hint-tip{height:44px;line-height:24px;background-color:#38f;color:#fff;box-sizing:border-box;width:269px;font-size:16px;padding:10px;padding-left:14px;position:absolute;top:-65px;right:-15px;border-radius:3px;z-index:299}.fb-hint-tip::before{content:\\\"\\\";width:0;height:0;display:block;position:absolute;border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #38f;bottom:-8px;right:25px}.fb-mask,.fb-mask-light{position:fixed;top:0;left:0;bottom:0;right:0;z-index:296;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6)}.fb-mask-light{background-color:#fff;filter:alpha(opacity=0);background-color:rgba(255,255,255,0)}.fb-success .fb-success-text{text-align:center;color:#333;font-size:13px;margin-bottom:14px}.fb-success-text.fb-success-text-title{color:#3b6;font-size:16px;margin-bottom:16px}.fb-success-text-title i{width:16px;height:16px;margin-right:5px}.fb-list-container{box-sizing:border-box;padding:4px 8px;position:absolute;top:0;left:0;bottom:0;right:0;z-index:298;display:block;width:100%;cursor:pointer;margin-top:-5px;margin-left:-5px}.fb-list-container-hover{background-color:#fff;border:2px #38f solid}.fb-list-container-first{box-sizing:border-box;padding-left:10px;padding-top:5px;position:absolute;top:0;left:0;bottom:0;right:0;z-index:297;display:block;width:100%;cursor:pointer;margin-top:-5px;margin-left:-5px;border:3px #f5f5f5 dashed;border-radius:3px}.fb-des-content{font-size:13px!important;color:#000}.fb-des-content::-webkit-input-placeholder{font-size:13px!important;color:#9a9a9a}.fb-des-content:-moz-placeholder{font-size:13px!important;color:#9a9a9a}.fb-des-content::-moz-placeholder{font-size:13px!important;color:#9a9a9a}.fb-des-content:-ms-input-placeholder{font-size:13px!important;color:#9a9a9a}.fb-btn,.fb-btn:visited{color:#333!important}.fb-select{position:relative;background-color:#fff;border:1px solid #ccc}.fb-select i{position:absolute;right:2px;top:7px}.fb-type{width:350px;box-sizing:border-box;height:28px;font-size:13px;line-height:28px;border:0;word-break:normal;word-wrap:normal;position:relative;appearance:none;-moz-appearance:none;-webkit-appearance:none;display:inline-block;vertical-align:middle;line-height:normal;color:#333;background-color:transparent;border-radius:0;overflow:hidden;outline:0;padding-left:5px}.fb-type::-ms-expand{display:none}.fb-btn{display:inline-block;padding:0 14px;margin:0;height:24px;line-height:25px;font-size:13px;filter:chroma(color=#000000);*zoom:1;border:1px solid #d8d8d8;cursor:pointer;font-family:inherit;font-weight:400;text-align:center;vertical-align:middle;background-color:#f9f9f9;overflow:hidden;outline:0}.fb-btn:hover{border-color:#388bff}.fb-btn:active{border-color:#a2a6ab;background-color:#f0f0f0;box-shadow:inset 1px 1px 1px #c7c7c7;-webkit-box-shadow:inset 1px 1px 1px #c7c7c7;-moz-box-shadow:inset 1px 1px 1px #c7c7c7;-o-box-shadow:inset 1px 1px 1px #c7c7c7}a.fb-btn{text-decoration:none}button.fb-btn{height:26px;_line-height:18px;*overflow:visible}button.fb-btn::-moz-focus-inner{padding:0;border:0}.fb-btn .c-icon{margin-top:5px}.fb-btn-primary,.fb-btn-primary:visited{color:#fff!important}.fb-btn-primary{background-color:#388bff;_width:82px;border-color:#3c8dff #408ffe #3680e6}.fb-btn-primary:hover{border-color:#2678ec #2575e7 #1c6fe2 #2677e7;background-color:#388bff;background-image:url(data:image\\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAMAAACuX0YVAAAABlBMVEVnpv85i\\/9PO5r4AAAAD0lEQVR42gEEAPv\\/AAAAAQAFAAIros7PAAAAAElFTkSuQmCC);background-repeat:repeat-x;box-shadow:1px 1px 1px rgba(0,0,0,.4);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.4);-moz-box-shadow:1px 1px 1px rgba(0,0,0,.4);-o-box-shadow:1px 1px 1px rgba(0,0,0,.4)}.fb-btn-primary:active{border-color:#178ee3 #1784d0 #177bbf #1780ca;background-color:#388bff;background-image:none;box-shadow:inset 1px 1px 1px rgba(0,0,0,.15);-webkit-box-shadow:inset 1px 1px 1px rgba(0,0,0,.15);-moz-box-shadow:inset 1px 1px 1px rgba(0,0,0,.15);-o-box-shadow:inset 1px 1px 1px rgba(0,0,0,.15)}.fb-feedback-right-dialog{position:fixed;z-index:299;bottom:0;right:0}.fb-feedback-list-dialog,.fb-feedback-list-dialog-left{position:absolute;z-index:299}.fb-feedback-list-dialog:before{content:\\\"\\\";width:0;height:0;display:block;position:absolute;top:15px;left:-6px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #fff}.fb-feedback-list-dialog-left:before{content:\\\"\\\";width:0;height:0;display:block;position:absolute;top:15px;right:-6px;border-top:8px solid transparent;border-bottom:8px solid transparent;border-left:8px solid #fff}.fb-header{padding-left:20px;padding-right:20px;margin-top:14px;text-align:left;-moz-user-select:none}.fb-header .fb-close{color:#e0e0e0}.fb-close{text-decoration:none;margin-top:2px;float:right;font-size:20px;font-weight:700;line-height:18px;color:#666;text-shadow:0 1px 0 #fff}.fb-photo-block{display:none}.fb-photo-block-title{font-size:13px;color:#333;padding-top:10px}.fb-photo-block-title-span{color:#999}.fb-photo-sub-block{margin-top:10px;margin-bottom:10px;width:60px;text-align:center}.fb-photo-sub-block-hide{display:none}.fb-photo-update-block{overflow:hidden}.fb-photo-update-item-block{width:100px;height:100px;background:red;border:solid 1px #ccc;margin-top:10px;float:left;margin-right:20px;position:relative;background:url(https:\\/\\/ss1.bdstatic.com\\/5eN1bjq8AAUYm2zgoY3K\\/r\\/www\\/cache\\/static\\/protocol\\/https\\/global\\/img\\/feedback_add_photo_69ff822.png);background-repeat:no-repeat;background-size:contain;background-position:center center;background-size:24px 24px}.fb-photo-block-title-ex{font-size:13px;float:right}.fb-photo-block-title-ex img{vertical-align:text-top;margin-right:4px}.fb-photo-block-title-span{margin-left:4px;color:#999}.fb-photo-update-item-show-img{width:100%;height:100%;display:none}.fb-photo-update-item-close{width:13px;height:13px;position:absolute;top:-6px;right:-6px;display:none}.fb-photo-block input{display:none}.fb-photo-update-hide{display:none}.fb-photo-update-item-block{width:60px;height:60px;border:solid 1px #ccc;float:left}.fb-photo-block-example{position:absolute;top:0;left:0;display:none;background-color:#fff;padding:14px;padding-top:0;width:392px}.fb-photo-block-example-header{padding-top:14px;overflow:hidden}.fb-photo-block-example-header p{float:left}.fb-photo-block-example-header img{float:right;width:13px;height:13px}.fb-photo-block-example-img img{margin:0 auto;margin-top:14px;display:block;width:200px}.fb-photo-block-example-title{text-align:center}.fb-photo-block-example-title-big{font-size:14px;color:#333}.fb-photo-block-example-title-small{font-size:13px;color:#666}.fb-header a.fb-close:hover{text-decoration:none}.fb-photo-block-upinfo{width:100%}.fb-header-tips{font-size:16px;margin:0;color:#333;text-rendering:optimizelegibility}.fb-body{margin-bottom:0;padding:20px;padding-top:10px;overflow:hidden;text-align:left}.fb-modal,.fb-success{background-color:#fff;cursor:default;top:100%;left:100%;width:390px;overflow:hidden;border:1px solid #999;*border:1px solid #ddd;font-size:13px;line-height:1.54}.fb-textarea textarea{width:350px;height:64px;padding:4px;margin:10px 0;vertical-align:top;resize:none;overflow:auto;box-sizing:border-box;display:inline-block;border:1px solid #ccc;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-ms-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.fb-selected{display:none;width:12px;height:12px;background:url(data:image\\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAFCAYAAACJmvbYAAAABGdBTUEAALGPC\\/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t\\/AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAJklEQVQI12NgwAEsuv\\/8xy9h3vX7P6oEKp\\/BHCqA0yhzdB0MDAwAFXkTK5la4mAAAAAASUVORK5CYII=) no-repeat 2px 3px}.fb-guide{padding-top:10px;color:#9a9a9a;margin-left:-20px;padding-left:20px;border-right-width:0;margin-right:-20px;padding-right:25px;margin-bottom:-20px;padding-bottom:15px}.fb-footer{padding-top:10px;text-align:left}.fb-block{overflow:hidden;position:relative}.fb-block .fb-email{height:28px;line-height:26px;width:350px;border:1px solid #ccc;padding:4px;padding-top:0;box-sizing:border-box;padding-bottom:0;display:inline-block;font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;vertical-align:middle!important;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-moz-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border linear .2s,box-shadow linear .2s;-moz-transition:border linear .2s,box-shadow linear .2s;-ms-transition:border linear .2s,box-shadow linear .2s;-o-transition:border linear .2s,box-shadow linear .2s;transition:border linear .2s,box-shadow linear .2s}.fb-email{font-size:13px!important;color:#000}.fb-email::-webkit-input-placeholder{font-size:13px!important;color:#9a9a9a}.fb-email:-moz-placeholder{font-size:13px!important;color:#9a9a9a}.fb-email::-moz-placeholder{font-size:13px!important;color:#9a9a9a}.fb-email:-ms-input-placeholder{font-size:13px!important;color:#9a9a9a}.fb-cut-block{height:15px;padding-bottom:10px}.fb-canvas-block{height:172px;border:1px solid #ccc;margin-bottom:10px;position:relative;overflow:hidden;width:100%;background-position:center;box-sizing:border-box}.fb-canvas-block img{width:350px;position:absolute}.fb-canvas-block img[src=\\\"\\\"]{opacity:0}.fb-cut-input{width:14px;height:14px;margin:0;margin-right:10px;display:inline-block;border:1px solid #ccc}.fb-cut-btn{width:60px!important}#fb_tips_span{vertical-align:middle}#fb_popwindow{display:block;left:457px;top:69.5px;position:absolute;width:450px;z-index:999999;background:none repeat scroll 0 0 #fff;border:1px solid #999;border-radius:3px;box-shadow:0 0 9px #999;padding:0}#feedback_dialog_content{text-align:center}#fb_right_post_save:hover{background-image:url(data:image\\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAMAAACuX0YVAAAABlBMVEVnpv85i\\/9PO5r4AAAAD0lEQVR42gEEAPv\\/AAAAAQAFAAIros7PAAAAAElFTkSuQmCC);background-repeat:repeat-x;box-shadow:1px 1px 1px rgba(0,0,0,.4);-webkit-box-shadow:1px 1px 1px rgba(0,0,0,.4);-moz-box-shadow:1px 1px 1px rgba(0,0,0,.4);-o-box-shadow:1px 1px 1px rgba(0,0,0,.4)}.fb-select-icon{position:absolute;bottom:6px;right:5px;width:16px;height:16px;box-sizing:content-box;background-position:center center;background-repeat:no-repeat;background-size:7px 4px;-webkit-background-size:7px 4px;background-image:url(data:image\\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAECAYAAABCxiV9AAAABGdBTUEAALGPC\\/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QAAAAAAAD5Q7t\\/AAAACXBIWXMAAAsSAAALEgHS3X78AAAAKElEQVQI12Ps7Or6z4ADMDIwMDBgU1BeVsbICOMgKygvK2PEMAbdBAAhxA08t5Q3VgAAAABJRU5ErkJggg==)}.fb-select-shorter{position:relative;min-height:28px}.fb-type-container{line-height:28px;position:absolute;top:28px;width:100%;background-color:#fff;border:1px solid #ccc;z-index:300;margin-left:-1px;display:none}.fb-type-item,.fb-type-selected{height:28px;line-height:30px;padding-left:4px}.fb-type-item:hover{background:#f5F5F5}.fb-checkbox{position:relative;border-bottom:1px solid #eee;height:34px;line-height:35px}.fb-checkbox:last-child{border-bottom:0}.fb-list-wrapper{margin-top:-10px}.fb-textarea-sug textarea{margin-top:0}@media screen and (min-width:1921px){.slowmsg{left:50%!important;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%)}.wrapper_l #head{-webkit-transform-style:preserve-3d;transform-style:preserve-3d}.head_wrapper{width:1196px;margin:0 auto;position:relative;-webkit-transform:translate3d(-52px,0,1px);transform:translate3d(-52px,0,1px)}#head .headBlock{-webkit-box-sizing:border-box;box-sizing:border-box;margin-left:auto;margin-right:auto;width:1196px;padding-left:121px;-webkit-transform:translate3d(-52px,0,0);transform:translate3d(-52px,0,0)}#s_tab.s_tab{padding-left:0}#s_tab.s_tab .s_tab_inner{display:block;-webkit-box-sizing:border-box;box-sizing:border-box;padding-left:77px;width:1212px;margin:0 auto}#con-at .result-op{margin-left:auto;margin-right:auto;-webkit-transform:translateX(-60px);-ms-transform:translateX(-60px);transform:translateX(-60px)}#wrapper_wrapper{margin-left:-88px}#container{-webkit-box-sizing:border-box;box-sizing:border-box;width:1212px;margin:0 auto}.foot-inner{width:1212px;margin:0 auto}}@font-face{font-family:cicons;font-weight:400;font-style:normal;src:url(\\/\\/m.baidu.com\\/se\\/static\\/font\\/cicon.eot?t=1547288673908#);src:url(\\/\\/m.baidu.com\\/se\\/static\\/font\\/cicon.eot?t=1547288673908#iefix) format('embedded-opentype'),url(\\/\\/m.baidu.com\\/se\\/static\\/font\\/cicon.woff?t=1547288673908#) format('woff'),url(\\/\\/m.baidu.com\\/se\\/static\\/font\\/cicon.ttf?t=1547288673908#) format('truetype'),url(\\/\\/m.baidu.com\\/se\\/static\\/font\\/cicon.svg?t=1547288673908#cicons) format('svg')}html{font-size:100px}html body{font-size:.14rem;font-size:14px}[data-pmd] a{color:#333;text-decoration:none;-webkit-tap-highlight-color:rgba(23,23,23,.1)}[data-pmd] .c-icon{display:inline;width:auto;height:auto;vertical-align:baseline;overflow:auto}[data-pmd] .c-row-tile{position:relative;margin:0 -9px}[data-pmd] .c-row-tile .c-row{padding:0 9px}[data-pmd] .c-row :last-child,[data-pmd] .c-row-tile :last-child{margin-right:0}[data-pmd] .c-row *,[data-pmd] .c-row-tile *{-webkit-box-sizing:border-box;box-sizing:border-box}[data-pmd] .c-icon{font-family:cicons!important;font-style:normal;-webkit-font-smoothing:antialiased}[data-pmd] .c-result{padding:0;margin:0;background:0 0;border:0 none}[data-pmd] .c-blocka{display:block}[data-pmd] a .c-title,[data-pmd] a.c-title{font:18px\\/26px Arial,Helvetica,sans-serif;color:#000}[data-pmd] a:visited .c-title,[data-pmd] a:visited.c-title{color:#999}[data-pmd] .sfa-view a:visited .c-title,[data-pmd] .sfa-view a:visited.c-title,[data-pmd] .sfa-view .c-title{color:#000;font:18px\\/26px Arial,Helvetica,sans-serif}[data-pmd] .c-title-noclick,[data-pmd] .c-title{font:18px\\/26px Arial,Helvetica,sans-serif;color:#999}[data-pmd] .c-title-nowrap{padding-right:33px;width:100%;position:relative;white-space:nowrap;box-sizing:border-box}[data-pmd] .c-title-nowrap .c-text{display:inline-block;vertical-align:middle}[data-pmd] .c-title-nowrap .c-title-text{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}[data-pmd] .c-font-sigma{font:22px\\/30px Arial,Helvetica,sans-serif}[data-pmd] .c-font-large{font:18px\\/26px Arial,Helvetica,sans-serif}[data-pmd] .c-font-big{font:18px\\/26px Arial,Helvetica,sans-serif}[data-pmd] .c-font-medium{font:14px\\/22px Arial,Helvetica,sans-serif}[data-pmd] .c-font-normal{font:13px\\/21px Arial,Helvetica,sans-serif}[data-pmd] .c-font-small{font:12px\\/20px Arial,Helvetica,sans-serif}[data-pmd] .c-font-tiny{font:12px\\/20px Arial,Helvetica,sans-serif}[data-pmd] .c-price{font:18px\\/26px Arial,Helvetica,sans-serif;color:#f60}[data-pmd] .c-title-wrap{display:block}[data-pmd] .c-title-nowrap{display:none}@media (min-width:376px){[data-pmd] .c-title{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}[data-pmd] .c-title-nowrap{display:block;overflow:visible}[data-pmd] .c-title-wrap{display:none}}[data-pmd] .c-abstract{color:#555}[data-pmd] .c-showurl{color:#999;font:13px\\/21px Arial,Helvetica,sans-serif}[data-pmd] .c-gray{color:#999;font:13px\\/21px Arial,Helvetica,sans-serif}[data-pmd] .c-moreinfo{color:#555;text-align:right;font:13px\\/21px Arial,Helvetica,sans-serif}[data-pmd] .c-foot-icon{display:inline-block;position:relative;top:.02rem;background:url(\\/\\/m.baidu.com\\/static\\/search\\/sprite.png) no-repeat;-webkit-background-size:1.9rem 1.42rem;background-size:1.9rem 1.42rem}[data-pmd] .c-foot-icon-16{width:.16rem;height:.13rem}[data-pmd] .c-foot-icon-16-aladdin{display:none;background-position:0 -.98rem}[data-pmd] .c-foot-icon-16-lightapp{background-position:-.2rem -.98rem}[data-pmd] .c-visited,[data-pmd] .c-visited .c-title,[data-pmd] .c-visited.c-title{color:#999!important}[data-pmd] .c-container{margin:8px 0;padding:10px 9px 15px;background-color:#fff;width:auto;color:#555;font:13px\\/21px Arial,Helvetica,sans-serif;word-break:break-word;word-wrap:break-word;border:0 none}[data-pmd] .c-container-tight{padding:10px 9px 15px;background-color:#fff;width:auto;color:#555;font:13px\\/21px Arial,Helvetica,sans-serif;word-break:break-word;word-wrap:break-word;border:0 none}[data-pmd] .c-container-tile{margin:0;padding:0}[data-pmd] .c-span-middle{display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-moz-box-orient:vertical;-webkit-box-direction:normal;-moz-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-moz-box-pack:center;-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center}[data-pmd] .c-line-clamp2,[data-pmd] .c-line-clamp3,[data-pmd] .c-line-clamp4,[data-pmd] .c-line-clamp5{display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin-bottom:4px;white-space:normal}[data-pmd] .c-line-clamp2{-webkit-line-clamp:2}[data-pmd] .c-line-clamp3{-webkit-line-clamp:3}[data-pmd] .c-line-clamp4{-webkit-line-clamp:4}[data-pmd] .c-line-clamp5{-webkit-line-clamp:5}[data-pmd] .c-line-clamp1{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-pmd] .c-line-top{border-top:1px solid #eee}[data-pmd] .c-line-dotted-top{border-top:1px dotted #eee}[data-pmd] .c-line-bottom{border-bottom:1px solid #eee}[data-pmd] .c-line-dotted-bottom{border-bottom:1px dotted #eee}[data-pmd] .c-color{color:#555}[data-pmd] .c-color-gray-a{color:#666}[data-pmd] .c-color-gray{color:#999}[data-pmd] .c-color-link{color:#000}[data-pmd] .c-color-noclick{color:#999}[data-pmd] .c-color-url{color:#999}[data-pmd] .c-color-red{color:#e43}[data-pmd] .c-color-red:visited{color:#e43}[data-pmd] .c-color-orange{color:#f60}[data-pmd] .c-color-orange:visited{color:#f60}[data-pmd] .c-color-icon-special{color:#b4b4b4}[data-pmd] .c-color-split{color:#eee}[data-pmd] .c-bg-color-white{background-color:#fff}[data-pmd] .c-bg-color-black{background-color:#000}[data-pmd] .se-page-bd .c-bg-color-gray{background-color:#f1f1f1}[data-pmd] .sfa-view .c-bg-color-gray{background-color:#f2f2f2}[data-pmd] .c-gap-top-zero{margin-top:0}[data-pmd] .c-gap-right-zero{margin-right:0}[data-pmd] .c-gap-bottom-zero{margin-bottom:0}[data-pmd] .c-gap-left-zero{margin-left:0}[data-pmd] .c-gap-top{margin-top:8px}[data-pmd] .c-gap-right{margin-right:8px}[data-pmd] .c-gap-bottom{margin-bottom:8px}[data-pmd] .c-gap-left{margin-left:8px}[data-pmd] .c-gap-top-small{margin-top:4px}[data-pmd] .c-gap-right-small{margin-right:4px}[data-pmd] .c-gap-bottom-small{margin-bottom:4px}[data-pmd] .c-gap-left-small{margin-left:4px}[data-pmd] .c-gap-top-large{margin-top:12px}[data-pmd] .c-gap-right-large{margin-right:12px}[data-pmd] .c-gap-bottom-large{margin-bottom:12px}[data-pmd] .c-gap-left-large{margin-left:12px}[data-pmd] .c-gap-left-middle{margin-left:8px}[data-pmd] .c-gap-right-middle{margin-right:8px}[data-pmd] .c-gap-inner-top-zero{padding-top:0}[data-pmd] .c-gap-inner-right-zero{padding-right:0}[data-pmd] .c-gap-inner-bottom-zero{padding-bottom:0}[data-pmd] .c-gap-inner-left-zero{padding-left:0}[data-pmd] .c-gap-inner-top{padding-top:8px}[data-pmd] .c-gap-inner-right{padding-right:8px}[data-pmd] .c-gap-inner-bottom{padding-bottom:8px}[data-pmd] .c-gap-inner-left{padding-left:8px}[data-pmd] .c-gap-inner-top-small{padding-top:4px}[data-pmd] .c-gap-inner-right-small{padding-right:4px}[data-pmd] .c-gap-inner-bottom-small{padding-bottom:4px}[data-pmd] .c-gap-inner-left-small{padding-left:4px}[data-pmd] .c-gap-inner-top-large{padding-top:12px}[data-pmd] .c-gap-inner-right-large{padding-right:12px}[data-pmd] .c-gap-inner-bottom-large{padding-bottom:12px}[data-pmd] .c-gap-inner-left-large{padding-left:12px}[data-pmd] .c-gap-inner-left-middle{padding-left:8px}[data-pmd] .c-gap-inner-right-middle{padding-right:8px}[data-pmd] .c-img{position:relative;display:block;width:100%;border:0 none;background:#f7f7f7 url(\\/\\/m.baidu.com\\/static\\/search\\/image_default.png) center center no-repeat;margin:4px 0}[data-pmd] .c-img img{width:100%}[data-pmd] .c-img .c-img-text{position:absolute;left:0;bottom:0;width:100%;height:.16rem;background:rgba(51,51,51,.4);font-size:.12rem;line-height:1.33333333;color:#fff;text-align:center}[data-pmd] .c-img-s,[data-pmd] .c-img-l,[data-pmd] .c-img-w,[data-pmd] .c-img-x,[data-pmd] .c-img-y,[data-pmd] .c-img-v,[data-pmd] .c-img-z{height:0;overflow:hidden}[data-pmd] .c-img-s{padding-bottom:100%}[data-pmd] .c-img-l{padding-bottom:133.33333333%}[data-pmd] .c-img-w{padding-bottom:56.25%}[data-pmd] .c-img-x{padding-bottom:75%}[data-pmd] .c-img-y{padding-bottom:66.66666667%}[data-pmd] .c-img-v{padding-bottom:33.33333333%}[data-pmd] .c-img-z{padding-bottom:40%}[data-pmd] .c-table{width:100%;border-collapse:collapse;border-spacing:0;color:#000}[data-pmd] .c-table th{color:#999}[data-pmd] .c-table th,[data-pmd] .c-table td{border-bottom:1px solid #eee;text-align:left;font-weight:400;padding:8px 0}[data-pmd] .c-table-hihead th{padding:0;border-bottom:0 none;background-color:#f6f6f6;line-height:.37rem}[data-pmd] .c-table-hihead div{background-color:#f6f6f6}[data-pmd] .c-table-hihead th:first-child div{margin-left:-9px;padding-left:9px}[data-pmd] .c-table-hihead th:last-child div{margin-right:-9px;padding-right:9px}[data-pmd] .c-table-noborder th,[data-pmd] .c-table-noborder td{border-bottom:0 none}[data-pmd] .c-table-slink tbody{color:#555;border-bottom:1px solid #eee}[data-pmd] .c-table-slink tbody th{border-bottom:1px solid #eee;padding:0}[data-pmd] .c-table-slink tbody td{border-bottom:0;padding:0}[data-pmd] .c-table-slink tbody td .c-slink-auto{margin:5px 0}[data-pmd] .c-table-slink tbody tr:first-child th,[data-pmd] .c-table-slink tbody tr:first-child td{padding:8px 0}[data-pmd] .c-table-slink tbody tr:nth-child(2) th,[data-pmd] .c-table-slink tbody tr:nth-child(2) td{padding-top:8px}[data-pmd] .c-table-slink tbody tr th,[data-pmd] .c-table-slink tbody tr td{padding-bottom:4px}[data-pmd] .c-table-slink tbody tr:last-child th,[data-pmd] .c-table-slink tbody tr:last-child td{padding-bottom:8px}[data-pmd] .c-table-abstract tbody{color:#555;border-bottom:1px solid #eee}[data-pmd] .c-table-abstract tbody th{border-bottom:1px solid #eee;padding:0}[data-pmd] .c-table-abstract tbody td{border-bottom:0;padding:0}[data-pmd] .c-table-abstract tbody tr:first-child th,[data-pmd] .c-table-abstract tbody tr:nth-child(2) th,[data-pmd] .c-table-abstract tbody tr:first-child td,[data-pmd] .c-table-abstract tbody tr:nth-child(2) td{padding-top:8px}[data-pmd] .c-table-abstract tbody tr th,[data-pmd] .c-table-abstract tbody tr td{padding-bottom:8px}[data-pmd] .c-table-abstract .c-table-gray{color:#999;font:12px\\/20px Arial,Helvetica,sans-serif}[data-pmd] .c-table-shaft th{color:#999}[data-pmd] .c-table-shaft td,[data-pmd] .c-table-shaft th{border-right:1px solid #eee;text-align:center}[data-pmd] .c-table-shaft td:last-child,[data-pmd] .c-table-shaft th:last-child{border-right:0}[data-pmd] .c-table-shaft tr:last-child td{border-bottom:0}[data-pmd] .c-slink{width:auto;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-pack:justify;-webkit-box-align:stretch;-webkit-box-lines:single;display:-webkit-flex;-webkit-flex-direction:row;-webkit-justify-content:space-between;-webkit-align-items:stretch;-webkit-align-content:flex-start;-webkit-flex-wrap:nowrap}[data-pmd] .c-slink a,[data-pmd] .c-slink .c-slink-elem{position:relative;display:block;-webkit-box-flex:1;-webkit-flex:1 1 auto;width:16.66666667%;height:.32rem;line-height:2.28571429;padding:0 .06rem;font-size:.14rem;text-align:center;text-decoration:none;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[data-pmd] .c-slink a:first-child::before,[data-pmd] .c-slink .c-slink-elem:first-child::before,[data-pmd] .c-slink a::after,[data-pmd] .c-slink .c-slink-elem::after{content:\\\"\\\";width:1px;height:.1rem;background-color:#eee;position:absolute;top:.11rem;right:0}[data-pmd] .c-slink a:first-child::before,[data-pmd] .c-slink .c-slink-elem:first-child::before{left:0}[data-pmd] .c-slink-strong{margin-bottom:1px}[data-pmd] .c-slink-strong:last-child{margin-bottom:0}[data-pmd] .c-slink-strong:last-child a,[data-pmd] .c-slink-strong:last-child .c-slink-elem{border-bottom:1px solid #eee}[data-pmd] .c-slink-strong a,[data-pmd] .c-slink-strong .c-slink-elem{height:.3rem;margin-right:1px;line-height:.3rem;background-color:#f5f5f5}[data-pmd] .c-slink-strong a:last-child,[data-pmd] .c-slink-strong .c-slink-elem:last-child{margin-right:0}[data-pmd] .c-slink-strong a:first-child::before,[data-pmd] .c-slink-strong .c-slink-elem:first-child::before,[data-pmd] .c-slink-strong a::after,[data-pmd] .c-slink-strong .c-slink-elem::after{display:none}[data-pmd] .c-slink-new{display:block;width:100%;height:.3rem;line-height:.3rem;background-color:#f5f5f5;font-size:.14rem;color:#000;text-align:center;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 .08rem;border-radius:.03rem;vertical-align:middle;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}[data-pmd] .c-slink-new:visited{color:#000}[data-pmd] .c-slink-new:active{background-color:#e5e5e5}[data-pmd] .c-slink-new-strong{display:block;width:100%;background-color:#f5f5f5;font-size:.14rem;color:#000;text-align:center;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 .08rem;border-radius:.03rem;vertical-align:middle;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0);height:.3rem;line-height:.3rem}[data-pmd] .c-slink-new-strong:visited{color:#000}[data-pmd] .c-slink-new-strong:active{background-color:#e5e5e5}[data-pmd] .c-slink-auto{display:inline-block;max-width:100%;height:.3rem;line-height:.3rem;background-color:#f5f5f5;font-size:.14rem;color:#000;text-align:center;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 .1rem;border-radius:3px;vertical-align:middle;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}[data-pmd] .c-slink-auto:active{background-color:#e5e5e5}[data-pmd] .c-slink-auto:visited{color:#000}[data-pmd] .c-text{display:inline-block;height:14px;padding:0 2px;margin-bottom:2px;text-decoration:none;vertical-align:middle;color:#fff;font-size:10px;line-height:15px;font-style:normal;font-weight:400;overflow:hidden;border-radius:2px}[data-pmd] .c-text-danger{background-color:#f13f40}[data-pmd] .c-text-public{background-color:#2b99ff}[data-pmd] .c-text-box{display:inline-block;padding:1px 2px;margin-bottom:2px;text-decoration:none;vertical-align:middle;font-size:10px;line-height:11px;height:10px;font-style:normal;font-weight:400;overflow:hidden;-webkit-box-sizing:content-box;box-sizing:content-box;border-radius:2px}[data-pmd] .c-text-box-gray{color:#999;border:1px solid #e3e3e3}[data-pmd] .c-text-box-orange{color:#f60;border:1px solid #f3d9c5}[data-pmd] .c-text-box-pink{color:#ff4683;border:1px solid #ffc7da}[data-pmd] .c-text-box-red{color:#f13f40;border:1px solid #efb9b9}[data-pmd] .c-text-box-blue{color:#2b99ff;border:1px solid #b3d4f3}[data-pmd] .c-text-box-green{color:#65b12c;border:1px solid #d7efc6}[data-pmd] .c-text-box-yellow{color:#faa90e;border:1px solid #feecc9}[data-pmd] .c-text-info{display:inline;color:#999;font-style:normal;font-weight:400;font-family:sans-serif}[data-pmd] .c-index{display:inline-block;height:15px;margin:0 5px 3px 0;text-align:center;vertical-align:middle;color:#999;font-size:14px;line-height:15px;overflow:hidden}[data-pmd] .c-index-hot-common{font-size:12px;color:#fff;width:16px}[data-pmd] .c-index-hot,[data-pmd] .c-index-hot1{background-color:#ff2d46;font-size:12px;color:#fff;width:16px}[data-pmd] .c-index-hot2{background-color:#ff7f49;font-size:12px;color:#fff;width:16px}[data-pmd] .c-index-hot3{background-color:#ffaa3b;font-size:12px;color:#fff;width:16px}[data-pmd] .c-btn{display:inline-block;padding:0 .08rem;width:100%;height:.3rem;font:13px\\/21px Arial,Helvetica,sans-serif;line-height:.28rem;text-decoration:none;text-align:center;color:#000;background-color:#fff;border:1px solid #707379;border-radius:3px;vertical-align:middle;overflow:hidden;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}[data-pmd] .c-btn:visited{color:#000}[data-pmd] .c-btn:active{border-color:#707379;background-color:#f2f2f2}[data-pmd] .c-btn .c-icon{position:relative;top:-1px;vertical-align:middle;font-size:14px;margin-right:4px}[data-pmd] .c-btn-small{display:inline-block;padding:0 .08rem;width:100%;height:.3rem;line-height:.28rem;font-size:12px;font-weight:400;text-decoration:none;text-align:center;color:#000;background-color:#fff;border:1px solid #707379;border-radius:3px;vertical-align:middle;overflow:hidden;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}[data-pmd] .c-btn-small:visited{color:#000}[data-pmd] .c-btn-small:active{border-color:#707379;background-color:#f2f2f2}[data-pmd] .c-btn-small .c-icon{position:relative;top:-1px;vertical-align:middle;font-size:14px;margin-right:4px}@media screen and (max-width:360px){[data-pmd] .c-btn{padding:0 .05rem}}@media screen and (max-width:375px){[data-pmd] .c-btn-small{padding:0 .02rem}}[data-pmd] .c-btn-primary{background-color:#f8f8f8;border-color:#d0d0d0;border-bottom-color:#b2b2b2;-webkit-box-shadow:0 1px 1px 0 #e1e1e1;box-shadow:0 1px 1px 0 #e1e1e1}[data-pmd] .c-btn-primary .c-icon{color:#02aaf8}[data-pmd] .c-btn-disable{color:#999;background-color:#fff;border-color:#f1f1f1}[data-pmd] .c-btn-disable:visited{color:#999}[data-pmd] .c-btn-disable:active{border-color:#f1f1f1}[data-pmd] .c-btn-disable .c-icon{color:#999}[data-pmd] .c-btn-weak{height:.3rem;line-height:.3rem;border-width:0}[data-pmd] .c-btn-weak:active{background-color:#f2f2f2}[data-pmd] .c-btn-weak-auto{width:auto;height:.3rem;line-height:.3rem;border-width:0}[data-pmd] .c-btn-weak-auto:active{background-color:#f2f2f2}[data-pmd] .c-btn-weak-gray{height:.3rem;line-height:.3rem;background-color:#f8f8f8;border-width:0}[data-pmd] .c-btn-weak-gray:active{background-color:#e5e5e5}[data-pmd] .c-btn-pills{height:.2rem;padding:0 .08rem;border-width:0;border-radius:.2rem;line-height:.2rem;font-size:10px;background-color:rgba(0,0,0,.4);color:#fff;width:auto;word-spacing:-3px;letter-spacing:0}[data-pmd] .c-btn-pills span{position:relative;top:1px}[data-pmd] .c-btn-pills::selection{color:#fff}[data-pmd] .c-btn-pills:visited{color:#fff}[data-pmd] .c-btn-pills:active{background-color:rgba(0,0,0,.4);color:#fff}[data-pmd] .c-btn-pills .c-icon{font-size:10px;top:1px;margin-right:4px}[data-pmd] .c-btn-circle{height:.3rem;width:.3rem;border-radius:50%;color:#fff;background-color:rgba(0,0,0,.4);border:0;padding:0;line-height:.3rem;text-align:center;vertical-align:middle;white-space:nowrap}[data-pmd] .c-btn-circle:active{color:#fff;background-color:rgba(0,0,0,.4)}[data-pmd] .c-btn-circle .c-icon{top:0;margin:0;display:block;font-size:14px;color:#fff}[data-pmd] .c-btn-circle-big{height:.3rem;width:.3rem;border-radius:50%;background-color:rgba(0,0,0,.4);border:0;padding:0;line-height:.3rem;text-align:center;vertical-align:middle;white-space:nowrap;height:.48rem;width:.48rem;line-height:.48rem;font-size:18px;color:#fff}[data-pmd] .c-btn-circle-big:active{color:#fff;background-color:rgba(0,0,0,.4)}[data-pmd] .c-btn-circle-big .c-icon{top:0;margin:0;display:block;font-size:14px;color:#fff}[data-pmd] .c-btn-circle-big .c-icon{font-size:24px}[data-pmd] .c-input{word-break:normal;word-wrap:normal;-webkit-appearance:none;appearance:none;display:inline-block;padding:0 .08rem;width:100%;height:.3rem;vertical-align:middle;line-height:normal;font-size:.14rem;color:#000;background-color:#fff;border:1px solid #eee;border-radius:1px;overflow:hidden;outline:0}[data-pmd] .c-input::-webkit-input-placeholder{color:#999;border-color:#eee}[data-pmd] .c-input:focus{border-color:#000}[data-pmd] .c-input:focus .c-icon{color:#dbdbdb}[data-pmd] .c-input:disabled{color:#999;border-color:#f1f1f1}[data-pmd] .c-dropdown{position:relative;background-color:#fff}[data-pmd] .c-dropdown::before{font-family:cicons;content:\\\"\\\\e73c\\\";display:inline-block;position:absolute;bottom:0;right:.08rem;color:#555;font-size:.14rem;height:.3rem;line-height:.3rem}[data-pmd] .c-dropdown>label{display:block;color:#999;background-color:#fff;width:100%;height:.26rem}[data-pmd] .c-dropdown>select{word-break:normal;word-wrap:normal;position:relative;-webkit-appearance:none;appearance:none;display:inline-block;padding:0 .24rem 0 .08rem;width:100%;height:.3rem;vertical-align:middle;line-height:normal;font-size:.14rem;color:#000;background-color:transparent;border:1px solid #eee;border-radius:0;overflow:hidden;outline:0}[data-pmd] .c-dropdown>select:focus{border-color:#000}[data-pmd] .c-dropdown-disable{background-color:#fff}[data-pmd] .c-dropdown-disable::before{color:#999}[data-pmd] .c-dropdown-disable>label{color:#999}[data-pmd] .c-dropdown-disable>select{color:#999;border-color:#f1f1f1}[data-pmd] .c-btn-shaft{border:1px solid #f1f1f1;text-overflow:ellipsis;white-space:nowrap}[data-pmd] .c-btn-shaft:active{border-color:#f1f1f1}[data-pmd] .c-tab-select{background-color:#f5f5f5;height:.38rem;line-height:.38rem;font-size:.14rem;color:#000;text-align:center}[data-pmd] .c-tab-select .c-icon{display:inline-block;font-size:.14rem;color:#555}[data-pmd] .c-tab-select .c-span12{text-align:left}[data-pmd] .c-tab-select .c-span12 .c-icon{position:absolute;right:0;bottom:0}@-webkit-keyframes c-loading-rotation{from{-webkit-transform:rotate(1deg)}to{-webkit-transform:rotate(360deg)}}[data-pmd] .c-loading,[data-pmd] .c-loading-zbios{text-align:center}[data-pmd] .c-loading i{display:block;position:relative;font-size:.3rem;width:.54rem;height:.54rem;line-height:.52rem;color:#f3f3f3;margin:auto}[data-pmd] .c-loading i::before{content:\\\"\\\";display:block;position:absolute;width:.5rem;height:.5rem;margin:auto;border-radius:50%;border:.02rem solid #f3f3f3;border-top-color:#ddd;-webkit-transform-origin:50% 50%;-webkit-animation:c-loading-rotation 1s ease 0s infinite normal}[data-pmd] .c-loading-zbios i{display:block;position:relative;font-size:.48rem;width:.54rem;height:.54rem;line-height:.54rem;color:#f3f3f3;margin:auto;-webkit-transform-origin:50% 50%;-webkit-animation:c-loading-rotation .5s linear 0s infinite normal}[data-pmd] .c-loading p,[data-pmd] .c-loading-zbios p{color:#999;margin-top:.08rem;text-indent:.5em}[data-pmd] .c-tabs{position:relative}[data-pmd] .c-tabs-nav{position:relative;min-width:100%;height:.38rem;padding:0 9px;font-size:.14rem;white-space:nowrap;background-color:#f5f5f5;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-pack:justify;-webkit-box-align:stretch;-webkit-box-lines:single;display:-webkit-flex;-webkit-flex-direction:row;-webkit-justify-content:space-between;-webkit-align-items:stretch;-webkit-align-content:flex-start;-webkit-flex-wrap:nowrap;-webkit-user-select:none!important;user-select:none!important;-khtml-user-select:none!important;-webkit-touch-callout:none!important}[data-pmd] .c-tabs-nav *{-webkit-box-sizing:border-box;box-sizing:border-box}[data-pmd] .c-tabs-nav-li{display:block;-webkit-box-flex:1;-webkit-flex:1 1 auto;width:16.66666667%;list-style:none;text-decoration:none;height:.38rem;line-height:.38rem;color:#555;text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0)}[data-pmd] .c-tabs-nav .c-tabs-nav-selected{color:#000;border-bottom:1px solid #000}[data-pmd] .c-tabs-nav-bottom{border-top:1px solid #f1f1f1;padding:0}[data-pmd] .c-tabs-nav-bottom .c-tabs-nav-li{color:#999}[data-pmd] .c-tabs-nav-bottom .c-tabs-nav-icon{display:none}[data-pmd] .c-tabs-nav-bottom .c-tabs-nav-selected{position:relative;top:-1px;height:.38rem;line-height:.39rem;color:#000;background-color:#fff;border-bottom:1px solid #000;border-top-color:#fff}[data-pmd] .c-tabs-nav-bottom .c-tabs-nav-selected:first-child{margin-left:-1px}[data-pmd] .c-tabs-nav-bottom .c-tabs-nav-selected .c-tabs-nav-icon{display:inline-block;width:.15rem;height:.15rem}[data-pmd] .c-tabs-nav-view{position:relative;height:.38rem;background-color:#f5f5f5;overflow:hidden}[data-pmd] .c-tabs-nav-view .c-tabs-nav{display:block}[data-pmd] .c-tabs-nav-view .c-tabs-nav .c-tabs-nav-li{display:inline-block;width:auto;padding:0 .17rem}[data-pmd] .c-tabs-nav-toggle{position:absolute;top:0;right:0;z-index:9;display:block;text-align:center;width:.38rem;height:.38rem;border-left:1px solid #eee;background-color:#f5f5f5}[data-pmd] .c-tabs-nav-toggle::before{display:inline-block;font-family:cicons;content:\\\"\\\\e73c\\\";font-size:.12rem;color:#333;line-height:.36rem}[data-pmd] .c-tabs-nav-layer{position:absolute;top:0;z-index:8;width:100%;background-color:#f5f5f5;border-bottom:1px solid #eee}[data-pmd] .c-tabs-nav-layer p{color:#999;height:.39rem;line-height:.39rem;padding:0 .17rem;border-bottom:1px solid #eee}[data-pmd] .c-tabs-nav-layer-ul .c-tabs-nav-li{display:inline-block;width:16.66666667%;padding:0}[data-pmd] .c-tabs-nav-layer-ul .c-tabs-nav-selected{color:#000}[data-pmd] .c-tabs2 .c-tabs-view-content{overflow:hidden}[data-pmd] .c-tabs2 .c-tabs-content{position:relative;float:left;display:none}[data-pmd] .c-tabs2 .c-tabs-selected{display:block}[data-pmd] .c-tabs2 .c-tabs-view-content-anim{transition:height .3s cubic-bezier(0.7,0,.3,1);-webkit-transition:height .3s cubic-bezier(0.7,0,.3,1);-moz-transition:height .3s cubic-bezier(0.7,0,.3,1);-o-transition:height .3s cubic-bezier(0.7,0,.3,1);transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transition:translate3d(0,0,0);-o-transition:translate3d(0,0,0)}[data-pmd] .c-tabs2 .c-tabs-stopanimate{transition:none;-webkit-transition:none;transform:none;-webkit-transform:none;-moz-transition:none;-o-transition:none}[data-pmd] .c-tabs2 .c-tabs-tabcontent{transition:transform .3s cubic-bezier(0.7,0,.3,1);-webkit-transition:transform .3s cubic-bezier(0.7,0,.3,1);-moz-transition:transform .3s cubic-bezier(0.7,0,.3,1);-o-transition:transform .3s cubic-bezier(0.7,0,.3,1);transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transition:translate3d(0,0,0);-o-transition:translate3d(0,0,0)}[data-pmd] .c-tabs-animation .c-tabs-view-content{margin:0 -.17rem;overflow:hidden}[data-pmd] .c-tabs-animation .c-tabs-content{position:relative;padding-left:.17rem;padding-right:.17rem;box-sizing:border-box;float:left;display:none}[data-pmd] .c-tabs-animation .c-tabs-selected{display:block}[data-pmd] .c-tabs-animation .c-tabs-view-content-anim{transition:height .3s cubic-bezier(0.7,0,.3,1);-webkit-transition:height .3s cubic-bezier(0.7,0,.3,1);-moz-transition:height .3s cubic-bezier(0.7,0,.3,1);-o-transition:height .3s cubic-bezier(0.7,0,.3,1);transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transition:translate3d(0,0,0);-o-transition:translate3d(0,0,0)}[data-pmd] .c-tabs-animation .c-tabs-stopanimate{transition:none;-webkit-transition:none;transform:none;-webkit-transform:none;-moz-transition:none;-o-transition:none}[data-pmd] .c-tabs-animation .c-tabs-tabcontent{transition:transform .3s cubic-bezier(0.7,0,.3,1);-webkit-transition:transform .3s cubic-bezier(0.7,0,.3,1);-moz-transition:transform .3s cubic-bezier(0.7,0,.3,1);-o-transition:transform .3s cubic-bezier(0.7,0,.3,1);transform:translate3d(0,0,0);-webkit-transform:translate3d(0,0,0);-moz-transition:translate3d(0,0,0);-o-transition:translate3d(0,0,0)}[data-pmd] .c-scroll-wrapper,[data-pmd] .c-scroll-wrapper-new{position:relative;overflow:hidden}[data-pmd] .c-scroll-wrapper-new .c-scroll-touch{padding-left:9px;padding-right:9px}[data-pmd] .c-scroll-parent-gap{padding:0 .11rem 0 9px}[data-pmd] .c-scroll-parent-gap .c-scroll-element-gap{padding-right:.1rem}[data-pmd] .c-scroll-indicator-wrapper{text-align:center;height:6px}[data-pmd] .c-scroll-indicator-wrapper .c-scroll-indicator{vertical-align:top}[data-pmd] .c-scroll-indicator{display:inline-block;position:relative;height:6px}[data-pmd] .c-scroll-indicator .c-scroll-dotty{position:absolute;width:6px;height:6px;border-radius:50%;background-color:#999}[data-pmd] .c-scroll-indicator .c-scroll-dotty-now{background-color:#999}[data-pmd] .c-scroll-indicator span{display:block;float:left;width:6px;height:6px;border-radius:50%;background-color:#e1e1e1;margin-right:.07rem}[data-pmd] .c-scroll-indicator span:last-child{margin-right:0}[data-pmd] .c-scroll-touch{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.3rem;margin-top:-.3rem;-webkit-transform:translateY(0.3rem);transform:translateY(0.3rem)}[data-pmd] .c-location-wrap{overflow:hidden;padding:0 .15rem;background-color:#f7f7f7}[data-pmd] .c-location-header-tips{font-size:.13rem}[data-pmd] .c-location-header-btn{padding-top:.08rem;-webkit-box-flex:0;-webkit-flex:none}[data-pmd] .c-location-header-btn div{display:inline-block}[data-pmd] .c-location-header-btn-reload:after{content:\\\"\\\";display:inline-block;overflow:hidden;width:1px;height:.1rem;margin:0 .08rem;background-color:#ccc}[data-pmd] .c-location-header-btn-788{display:none}[data-pmd] .c-location-header-btn-in,[data-pmd] .c-location-header-btn-reload{color:#333}[data-pmd] .c-location-header-btn .c-icon{color:#666;vertical-align:top}[data-pmd] .c-location-header-tips{color:#999}[data-pmd] .c-location-header-tips-err{color:#c00}[data-pmd] .c-location-header-tips-success{color:#38f}[data-pmd] .c-location-header-btn-reload-ing .c-location-header-btn-787{display:none}[data-pmd] .c-location-header-btn-reload-ing .c-location-header-btn-788{display:inline-block;color:#999;-webkit-animation-name:c_location_rotate;-webkit-animation-duration:1.5s;-webkit-animation-iteration-count:infinite;-webkit-animation-timing-function:linear}[data-pmd] .c-location-header-btn-reload-ing{color:#999}@-webkit-keyframes c_location_rotate{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes c_location_rotate{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}[data-pmd] .c-location-header-btn-in-active,[data-pmd] .c-location-header-btn-in-active .c-icon{color:#38f}[data-pmd] .c-location-form{position:relative}[data-pmd] .c-location-form .c-input{padding-right:.7rem}[data-pmd] .c-location-input-close{position:absolute;z-index:10;top:1px;right:.37rem;display:none;width:.36rem;height:.36rem;line-height:.36rem;text-align:center;color:#ddd;font-size:.16rem}[data-pmd] .c-location-form .c-input:focus{border-color:#ddd #eee #eee #ddd;background-color:#fff}[data-pmd] .c-location-sub{position:absolute;z-index:10;top:1px;right:1px;width:.36rem;height:.36rem;border-left:1px solid #eee;line-height:.36rem;text-align:center;background-color:#fafafa}[data-pmd] .c-location-body{display:none;padding-bottom:.14rem}[data-pmd] .c-location-down{display:none;border:1px solid #eee;border-top:0;background-color:#fff;-webkit-tap-highlight-color:rgba(0,0,0,0)}[data-pmd] .c-location-down-tips{height:.38rem;padding-left:.12rem;line-height:.38rem;background-color:#fafafa}[data-pmd] .c-location-down-tips-close{padding-right:.12rem}[data-pmd] .c-location-down-tips-close:before{content:\\\"\\\";display:inline-block;width:1px;height:.1rem;margin-right:.08rem;background-color:#ddd}[data-pmd] .c-location-down ul{list-style:none}[data-pmd] .c-location-down li{padding:.04rem .12rem;border-top:1px solid #eee}[data-pmd] .c-navs{position:relative}[data-pmd] .c-navs-bar{position:relative;min-width:100%;height:40px;white-space:nowrap;display:-webkit-box;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-box-pack:justify;-webkit-box-align:stretch;-webkit-box-lines:single;display:-webkit-flex;-webkit-flex-direction:row;-webkit-justify-content:space-between;-webkit-align-items:stretch;-webkit-align-content:flex-start;-webkit-flex-wrap:nowrap}[data-pmd] .c-navs .c-row-tile{border-bottom:1px solid #f1f1f1}[data-pmd] .c-navs-sub .c-navs-bar{height:38px}[data-pmd] .c-navs-bar *{-webkit-box-sizing:border-box;box-sizing:border-box}[data-pmd] .c-navs-bar-li{display:block;-webkit-box-flex:1;-webkit-flex:1 1 auto;width:16.66666667%;height:40px;line-height:40px;list-style:none;text-decoration:none;color:#666;text-align:center;font-size:15px;-webkit-tap-highlight-color:transparent;padding:0 17px}[data-pmd] .c-navs-sub .c-navs-bar-li{height:38px;line-height:38px}[data-pmd] .c-navs-bar-li span{height:100%;display:inline-block;max-width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}[data-pmd] .c-navs-bar .c-navs-bar-selected span{color:#333;font-weight:700;border-bottom:2px solid #333}[data-pmd] .c-navs-bar-view{position:relative;overflow:hidden}[data-pmd] .c-navs-bar-view .c-navs-bar{display:block}[data-pmd] .c-navs-bar-view .c-navs-bar .c-navs-bar-li{display:inline-block;width:auto;padding:0 17px}[data-pmd] .c-navs-bar-toggle{position:absolute;top:0;right:0;width:34px;height:40px;background-color:#fff}[data-pmd] .c-navs-sub .c-navs-bar-toggle{height:38px}[data-pmd] .c-navs-bar-toggle i{width:0;height:0;right:17px;top:17px;border-right:5px solid transparent;border-top:5px solid #999;border-left:5px solid transparent;position:absolute}[data-pmd] .c-navs-bar-layer{position:absolute;top:0;z-index:8;width:100%;background-color:#fff;overflow-x:hidden}[data-pmd] .c-navs-bar-layer p{color:#999;padding:9px 17px 13px}[data-pmd] .c-navs-sub .c-navs-bar-layer p{padding:8px 17px 13px}[data-pmd] .c-navs-bar-layer .c-row{margin-bottom:17px}[data-pmd] .c-navs-sub .c-navs-bar-toggle i{top:16px}[data-pmd] .c-navs-bar-layer .c-navs-bar-toggle i{border-right:5px solid transparent;border-bottom:5px solid #999;border-left:5px solid transparent;border-top:0}[data-pmd] .c-navs-bar-layer .c-navs-bar-li{height:33px;line-height:33px;text-align:center;font-size:14px;color:#333;width:33.33333333%;-webkit-box-flex:4;-webkit-flex:4 4 auto;padding-right:1.55367232%;padding-left:1.55367232%}[data-pmd] .c-navs-bar-layer .c-span4.c-navs-bar-li span{display:inline-block;width:100%;border:1px solid #f1f1f1;border-bottom:1px solid #f1f1f1}[data-pmd] .c-navs-bar-layer .c-span4.c-navs-bar-selected span{border:2px solid #333;line-height:31px}[data-pmd] .c-navs-shadow{right:34px;position:absolute;top:0;width:10px;height:40px;background:-webkit-linear-gradient(left,rgba(255,255,255,0),#fff);background:linear-gradient(to right,rgba(255,255,255,0),#fff)}[data-pmd] .c-navs-sub .c-navs-shadow{height:38px}[data-pmd] .c-navs-bar-mask{position:absolute;z-index:7;top:0;left:0;background:rgba(0,0,0,.65);height:1024px;width:100%}[data-pmd] .c-navs-sub .c-navs-bar-li span{border-bottom:0;font-size:14px}<\\/style>\";\n",
      "    result_common_css=$(result_common_css);\n",
      "    result_common_css.attr(\"data-for\",\"result\");\n",
      "\n",
      "    var index_css= $('head [index]');\n",
      "    var wrapper=$(\"#wrapper\");\n",
      "    window.index_on=function(){\n",
      "        index_css.insertAfter(\"meta:eq(0)\");\n",
      "        result_common_css.remove();\n",
      "        wrapper.show();\n",
      "        if(bds.su&&bds.su.U&&bds.su.U.homeInit){\n",
      "            bds.su.U.homeInit();\n",
      "        }\n",
      "        //$(\"#wrapper_wrapper\").remove();\n",
      "    };\n",
      "    window.index_off=function(){\n",
      "        //不能操作dom，只能改css，否则会丢失输入法状态\n",
      "        result_common_css.insertAfter(\"meta:eq(0)\");\n",
      "        wrapper.show();\n",
      "        index_css.remove();\n",
      "\n",
      "        //$(\"<div id='wrapper_wrapper'></div>\").appendTo(\"#wrapper\");\n",
      "    };\n",
      "})();\n",
      "\n",
      "//首页UA diff 监控\n",
      "$(window).on(\"load\",function() {\n",
      "\n",
      "\tvar rand = Math.random();\n",
      "\n",
      "\tif(rand < 0.01) {\n",
      "\t\ttry {\n",
      "\t\tvar baseUrl = \"//www.baidu.com/nocache/fesplg/s.gif?log_type=hm&type=uamonitor&\",\n",
      "\t\t\tqueryString = \"\";\n",
      "\n",
      "\t\tqueryString += \"&c_ua=\" + encodeURIComponent(navigator.userAgent);\n",
      "\t\tqueryString += \"&s_ua=\" + encodeURIComponent(bds.comm.userAgent);\n",
      "\n",
      "\t\tvar url=baseUrl+queryString,\n",
      "\t\t\timg = new Image(),\n",
      "\t\t\timg_rand=\"_LOG_\"+new Date().getTime();\n",
      "\t\timg.onload=function(){\n",
      "\t\t\tdelete window[img_rand];\n",
      "\t\t};\n",
      "\t\twindow[img_rand]=img;\n",
      "\t\timg.src=url;\n",
      "\t\t} catch(e) {};\n",
      "\t}\n",
      "});\n",
      "\n",
      "</script>\n",
      "\n",
      "<script type=\"text/javascript\">var Cookie={set:function(e,t,o,i,s,n){document.cookie=e+\"=\"+(n?t:escape(t))+(s?\"; expires=\"+s.toGMTString():\"\")+(i?\"; path=\"+i:\"; path=/\")+(o?\"; domain=\"+o:\"\")},get:function(e,t){var o=document.cookie.match(new RegExp(\"(^| )\"+e+\"=([^;]*)(;|$)\"));return null!=o?unescape(o[2]):t},clear:function(e,t,o){this.get(e)&&(document.cookie=e+\"=\"+(t?\"; path=\"+t:\"; path=/\")+(o?\"; domain=\"+o:\"\")+\";expires=Fri, 02-Jan-1970 00:00:00 GMT\")}};!function(){function save(e){var t=[];for(tmpName in options)options.hasOwnProperty(tmpName)&&\"duRobotState\"!==tmpName&&t.push('\"'+tmpName+'\":\"'+options[tmpName]+'\"');\n",
      "var o=\"{\"+t.join(\",\")+\"}\";bds.comm.personalData?$.ajax({url:\"//www.baidu.com/ups/submit/addtips/?product=ps&tips=\"+encodeURIComponent(o)+\"&_r=\"+(new Date).getTime(),success:function(){writeCookie(),\"function\"==typeof e&&e()}}):(writeCookie(),\"function\"==typeof e&&setTimeout(e,0))}function set(e,t){options[e]=t}function get(e){return options[e]}function writeCookie(){if(options.hasOwnProperty(\"sugSet\")){var e=\"0\"==options.sugSet?\"0\":\"3\";clearCookie(\"sug\"),Cookie.set(\"sug\",e,document.domain,\"/\",expire30y)\n",
      "}if(options.hasOwnProperty(\"sugStoreSet\")){var e=0==options.sugStoreSet?\"0\":\"1\";clearCookie(\"sugstore\"),Cookie.set(\"sugstore\",e,document.domain,\"/\",expire30y)}if(options.hasOwnProperty(\"isSwitch\")){var t={0:\"2\",1:\"0\",2:\"1\"},e=t[options.isSwitch];clearCookie(\"ORIGIN\"),Cookie.set(\"ORIGIN\",e,document.domain,\"/\",expire30y)}if(options.hasOwnProperty(\"imeSwitch\")){var e=options.imeSwitch;clearCookie(\"bdime\"),Cookie.set(\"bdime\",e,document.domain,\"/\",expire30y)}}function writeBAIDUID(){var e,t,o,i=Cookie.get(\"BAIDUID\");\n",
      "/FG=(\\d+)/.test(i)&&(t=RegExp.$1),/SL=(\\d+)/.test(i)&&(o=RegExp.$1),/NR=(\\d+)/.test(i)&&(e=RegExp.$1),options.hasOwnProperty(\"resultNum\")&&(e=options.resultNum),options.hasOwnProperty(\"resultLang\")&&(o=options.resultLang),Cookie.set(\"BAIDUID\",i.replace(/:.*$/,\"\")+(\"undefined\"!=typeof o?\":SL=\"+o:\"\")+(\"undefined\"!=typeof e?\":NR=\"+e:\"\")+(\"undefined\"!=typeof t?\":FG=\"+t:\"\"),\".baidu.com\",\"/\",expire30y,!0)}function clearCookie(e){Cookie.clear(e,\"/\"),Cookie.clear(e,\"/\",document.domain),Cookie.clear(e,\"/\",\".\"+document.domain),Cookie.clear(e,\"/\",\".baidu.com\")\n",
      "}function reset(e){options=defaultOptions,save(e)}var defaultOptions={sugSet:1,sugStoreSet:1,isSwitch:1,isJumpHttps:1,imeSwitch:0,resultNum:10,skinOpen:1,resultLang:0,duRobotState:\"000\"},options={},tmpName,expire30y=new Date;expire30y.setTime(expire30y.getTime()+94608e7);try{if(bds&&bds.comm&&bds.comm.personalData){if(\"string\"==typeof bds.comm.personalData&&(bds.comm.personalData=eval(\"(\"+bds.comm.personalData+\")\")),!bds.comm.personalData)return;for(tmpName in bds.comm.personalData)defaultOptions.hasOwnProperty(tmpName)&&bds.comm.personalData.hasOwnProperty(tmpName)&&\"SUCCESS\"==bds.comm.personalData[tmpName].ErrMsg&&(options[tmpName]=bds.comm.personalData[tmpName].value)\n",
      "}try{parseInt(options.resultNum)||delete options.resultNum,parseInt(options.resultLang)||\"0\"==options.resultLang||delete options.resultLang}catch(e){}writeCookie(),\"sugSet\"in options||(options.sugSet=3!=Cookie.get(\"sug\",3)?0:1),\"sugStoreSet\"in options||(options.sugStoreSet=Cookie.get(\"sugstore\",0));var BAIDUID=Cookie.get(\"BAIDUID\");\"resultNum\"in options||(options.resultNum=/NR=(\\d+)/.test(BAIDUID)&&RegExp.$1?parseInt(RegExp.$1):10),\"resultLang\"in options||(options.resultLang=/SL=(\\d+)/.test(BAIDUID)&&RegExp.$1?parseInt(RegExp.$1):0),\"isSwitch\"in options||(options.isSwitch=2==Cookie.get(\"ORIGIN\",0)?0:1==Cookie.get(\"ORIGIN\",0)?2:1),\"imeSwitch\"in options||(options.imeSwitch=Cookie.get(\"bdime\",0))\n",
      "}catch(e){}window.UPS={writeBAIDUID:writeBAIDUID,reset:reset,get:get,set:set,save:save}}(),function(){var e=\"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/every_cookie_4644b13.js\";(\"Mac68K\"==navigator.platform||\"MacPPC\"==navigator.platform||\"Macintosh\"==navigator.platform||\"MacIntel\"==navigator.platform)&&(e=\"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/plugins/every_cookie_mac_82990d4.js\"),setTimeout(function(){$.ajax({url:e,cache:!0,dataType:\"script\"})},0);var t=navigator&&navigator.userAgent?navigator.userAgent:\"\",o=document&&document.cookie?document.cookie:\"\",i=!!(t.match(/(msie [2-8])/i)||t.match(/windows.*safari/i)&&!t.match(/chrome/i)||t.match(/(linux.*firefox)/i)||t.match(/Chrome\\/29/i)||t.match(/mac os x.*firefox/i)||o.match(/\\bISSW=1/)||0==UPS.get(\"isSwitch\"));\n",
      "bds&&bds.comm&&(bds.comm.supportis=!i,bds.comm.isui=!0),window.__restart_confirm_timeout=!0,window.__confirm_timeout=8e3,window.__disable_is_guide=!0,window.__disable_swap_to_empty=!0,window.__switch_add_mask=!0;var s=\"https://ss1.bdstatic.com/5eN1bjq8AAUYm2zgoY3K/r/www/cache/static/protocol/https/global/js/all_async_search_9e4ab3f.js\",n=\"/script\";document.write(\"<script src='\"+s+\"'><\"+n+\">\"),bds.comm.newindex&&$(window).on(\"index_off\",function(){$('<div class=\"c-tips-container\" id=\"c-tips-container\"></div>').insertAfter(\"#wrapper\"),window.__sample_dynamic_tab&&$(\"#s_tab\").remove()\n",
      "}),bds.comm&&bds.comm.ishome&&Cookie.get(\"H_PS_PSSID\")&&(bds.comm.indexSid=Cookie.get(\"H_PS_PSSID\"));var a=$(document).find(\"#s_tab\").find(\"a\");a&&a.length>0&&a.each(function(e,t){t.innerHTML&&t.innerHTML.match(/新闻/)&&(t.innerHTML=\"资讯\",t.href=\"//www.baidu.com/s?rtt=1&bsst=1&cl=2&tn=news&word=\",t.setAttribute(\"sync\",!0))})}();</script>\n",
      "\n",
      "\n",
      "\n",
      "<script>\n",
      "if(bds.comm.supportis){\n",
      "    window.__restart_confirm_timeout=true;\n",
      "    window.__confirm_timeout=8000;\n",
      "    window.__disable_is_guide=true;\n",
      "    window.__disable_swap_to_empty=true;\n",
      "}\n",
      "initPreload({\n",
      "    'isui':true,\n",
      "    'index_form':\"#form\",\n",
      "    'index_kw':\"#kw\",\n",
      "    'result_form':\"#form\",\n",
      "    'result_kw':\"#kw\"\n",
      "});\n",
      "</script>\n",
      "\n",
      "<script>\n",
      "if(navigator.cookieEnabled){\n",
      "\tdocument.cookie=\"NOJS=;expires=Sat, 01 Jan 2000 00:00:00 GMT\";\n",
      "}\n",
      "</script>\n",
      "\n",
      "\n",
      "\n",
      "</body>\n",
      "</html>\n",
      "\n",
      "\r\n",
      "\n",
      "\n",
      "\r\n",
      "\n"
     ]
    }
   ],
   "source": [
    "header = {\n",
    "        'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36'\n",
    "    }\n",
    "r = http.request('GET','https://www.baidu.com/s?',fields={'wd': 'hello'},headers=header)\n",
    "print(r.status) # 200\n",
    "print(r.data.decode())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 65,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{\n",
      "  \"args\": {}, \n",
      "  \"data\": \"\", \n",
      "  \"files\": {}, \n",
      "  \"form\": {\n",
      "    \"hello\": \"world\"\n",
      "  }, \n",
      "  \"headers\": {\n",
      "    \"Accept-Encoding\": \"identity\", \n",
      "    \"Connection\": \"close\", \n",
      "    \"Content-Length\": \"129\", \n",
      "    \"Content-Type\": \"multipart/form-data; boundary=40c7c169a09a5f97e93bd7b3977a24a8\", \n",
      "    \"Host\": \"httpbin.org\", \n",
      "    \"User-Agent\": \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36\"\n",
      "  }, \n",
      "  \"json\": null, \n",
      "  \"origin\": \"58.248.180.249\", \n",
      "  \"url\": \"http://httpbin.org/post\"\n",
      "}\n",
      "\n"
     ]
    }
   ],
   "source": [
    "header = {\n",
    "    'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36'\n",
    "}\n",
    "r = http.request('POST',\n",
    "                 'http://httpbin.org/post',\n",
    "                 fields={'hello':'world'},\n",
    "                 headers=header)\n",
    "print(r.data.decode())"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## POST和PUT请求(request)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 66,
   "metadata": {
    "collapsed": false,
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "b'arg=%E6%88%91%E7%9A%84'\n",
      "{\n",
      "  \"args\": {\n",
      "    \"arg\": \"我的\"\n",
      "  }, \n",
      "  \"data\": \"\", \n",
      "  \"files\": {}, \n",
      "  \"form\": {}, \n",
      "  \"headers\": {\n",
      "    \"Accept-Encoding\": \"identity\", \n",
      "    \"Connection\": \"close\", \n",
      "    \"Content-Length\": \"0\", \n",
      "    \"Host\": \"httpbin.org\", \n",
      "    \"User-Agent\": \"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36\"\n",
      "  }, \n",
      "  \"json\": null, \n",
      "  \"origin\": \"58.248.180.249\", \n",
      "  \"url\": \"http://httpbin.org/post?arg=我的\"\n",
      "}\n",
      "\n"
     ]
    }
   ],
   "source": [
    "# 对于POST和PUT请求(request),需要手动对传入数据进行编码，然后加在URL之后：\n",
    "encode_arg = urllib.parse.urlencode({'arg': '我的'})\n",
    "print(encode_arg.encode())\n",
    "r = http.request('POST',\n",
    "                 'http://httpbin.org/post?'+encode_arg,\n",
    "                 headers=header)\n",
    "# unicode解码\n",
    "\n",
    "print(r.data.decode('unicode_escape'))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 发送json数据"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 67,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{\n",
      "  \"args\": {}, \n",
      "  \"data\": \"{\"attribute\": \"value\"}\", \n",
      "  \"files\": {}, \n",
      "  \"form\": {}, \n",
      "  \"headers\": {\n",
      "    \"Accept-Encoding\": \"identity\", \n",
      "    \"Connection\": \"close\", \n",
      "    \"Content-Length\": \"22\", \n",
      "    \"Content-Type\": \"application/json\", \n",
      "    \"Host\": \"httpbin.org\"\n",
      "  }, \n",
      "  \"json\": {\n",
      "    \"attribute\": \"value\"\n",
      "  }, \n",
      "  \"origin\": \"58.248.180.249\", \n",
      "  \"url\": \"http://httpbin.org/post\"\n",
      "}\n",
      "\n"
     ]
    }
   ],
   "source": [
    "#JSON:在发起请求时,可以通过定义body 参数并定义headers的Content-Type参数来发送一个已经过编译的JSON数据：\n",
    "import json\n",
    "data={'attribute':'value'}\n",
    "encode_data= json.dumps(data).encode()\n",
    "\n",
    "r = http.request('POST',\n",
    "                     'http://httpbin.org/post',\n",
    "                     body=encode_data,\n",
    "                     headers={'Content-Type':'application/json'}\n",
    "                 )\n",
    "print(r.data.decode('unicode_escape'))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 上传文件"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 70,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{\n",
      "  \"args\": {}, \n",
      "  \"data\": \"\", \n",
      "  \"files\": {\n",
      "    \"filefield\": \"1.txt\"\n",
      "  }, \n",
      "  \"form\": {}, \n",
      "  \"headers\": {\n",
      "    \"Accept-Encoding\": \"identity\", \n",
      "    \"Connection\": \"close\", \n",
      "    \"Content-Length\": \"177\", \n",
      "    \"Content-Type\": \"multipart/form-data; boundary=4f5cbfcdabf8d0038ad7e9e48e5de448\", \n",
      "    \"Host\": \"httpbin.org\"\n",
      "  }, \n",
      "  \"json\": null, \n",
      "  \"origin\": \"58.248.180.249\", \n",
      "  \"url\": \"http://httpbin.org/post\"\n",
      "}\n",
      "\n",
      "{\n",
      "  \"args\": {}, \n",
      "  \"data\": \"data:application/octet-stream;base64,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x/7af+jGroKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooA5/Tv+R417/r1s/wCc1dBXP6d/yPGvf9etn/OaugoAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKp6rqlroumT6jeuyWtuN0rqpbYuQC2BzgdT7A1cqG6tob2zntLhA8E8bRyIejKwwR+RoA5T4ba7p2seGEh0+fzzaErM6qdoZmZgoPc4wTjpkV2Ncj8M/DB8JeB7PTJI9lzvkknOOWYucE/8AAQo/CuuoAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigDgtE8YaJe/EbVbG2uy93PHDAsHlsHV4vO8wMCPl28cnrkYzmu9ri9G8Hx6b8UfEPiMQBVvbWBYmA43HPm/jmNCfrXaUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAFFFFABRRRQAUUUUAf/9k=\", \n",
      "  \"files\": {}, \n",
      "  \"form\": {}, \n",
      "  \"headers\": {\n",
      "    \"Accept-Encoding\": \"identity\", \n",
      "    \"Connection\": \"close\", \n",
      "    \"Content-Length\": \"11270\", \n",
      "    \"Content-Type\": \"image/jpeg\", \n",
      "    \"Host\": \"httpbin.org\"\n",
      "  }, \n",
      "  \"json\": null, \n",
      "  \"origin\": \"58.248.180.249\", \n",
      "  \"url\": \"http://httpbin.org/post\"\n",
      "}\n",
      "\n"
     ]
    }
   ],
   "source": [
    "#使用multipart/form-data编码方式上传文件,可以使用和传入Form data数据一样的方法进行,并将文件定义为一个元组的形式　　　　　(file_name,file_data):\n",
    "with open('1.txt','r+',encoding='UTF-8') as f:\n",
    "    file_read = f.read()\n",
    "\n",
    "r = http.request('POST',\n",
    "                 'http://httpbin.org/post',\n",
    "                 fields={'filefield':('1.txt', file_read, 'text/plain')\n",
    "                         })\n",
    "print(r.data.decode('unicode_escape'))\n",
    "\n",
    "#二进制文件\n",
    "with open('websocket.jpg','rb') as f2:\n",
    "    binary_read = f2.read()\n",
    "\n",
    "r = http.request('POST',\n",
    "                 'http://httpbin.org/post',\n",
    "                 body=binary_read,\n",
    "                 headers={'Content-Type': 'image/jpeg'})\n",
    "#\n",
    "# print(json.loads(r.data.decode('utf-8'))['data'] )\n",
    "print(r.data.decode('utf-8'))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 使用timeout"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 72,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n",
      "<title>404 Not Found</title>\n",
      "<h1>Not Found</h1>\n",
      "<p>The requested URL was not found on the server.  If you entered the URL manually please check your spelling and try again.</p>\n",
      "\n"
     ]
    }
   ],
   "source": [
    "#使用timeout，可以控制请求的运行时间。在一些简单的应用中，可以将timeout参数设置为一个浮点数：\n",
    "r = http.request('POST',\n",
    "                 'http://httpbin.org/post123',timeout=3.0)\n",
    "\n",
    "print(r.data.decode('utf-8'))\n",
    "\n",
    "#让所有的request都遵循一个timeout，可以将timeout参数定义在PoolManager中：\n",
    "http = urllib3.PoolManager(timeout=3.0)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 73,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{\n",
      "  \"origin\": \"58.248.180.249\"\n",
      "}\n",
      "\n",
      "d1 <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 3.2 Final//EN\">\n",
      "<title>Redirecting...</title>\n",
      "<h1>Redirecting...</h1>\n",
      "<p>You should be redirected automatically to target URL: <a href=\"/get\">/get</a>.  If not click the link.\n"
     ]
    }
   ],
   "source": [
    "#通过设置retries参数对重试进行控制。Urllib3默认进行3次请求重试，并进行3次方向改变。\n",
    "r = http.request('GET',\n",
    "                 'http://httpbin.org/ip',retries=5)#请求重试的次数为5\n",
    "\n",
    "print(r.data.decode('utf-8'))\n",
    "##关闭请求重试(retrying request)及重定向(redirect)只要将retries定义为False即可：\n",
    "r = http.request('GET',\n",
    "                 'http://httpbin.org/redirect/1',retries=False,redirect=False)\n",
    "print('d1',r.data.decode('utf-8'))\n",
    "#关闭重定向(redirect)但保持重试(retrying request),将redirect参数定义为False即可\n",
    "r = http.request('GET',\n",
    "                 'http://httpbin.org/redirect/1',redirect=False)"
   ]
  }
 ],
 "metadata": {
  "anaconda-cloud": {},
  "kernelspec": {
   "display_name": "Python [default]",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.5.2"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {
    "height": "calc(100% - 180px)",
    "left": "10px",
    "top": "150px",
    "width": "273px"
   },
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}
